Fix missing whitespace in bgpd(8) output
authorjob <job@openbsd.org>
Wed, 19 Apr 2023 19:26:26 +0000 (19:26 +0000)
committerjob <job@openbsd.org>
Wed, 19 Apr 2023 19:26:26 +0000 (19:26 +0000)
regress/usr.sbin/rpki-client/aspa/d6915eb78c75cab0bc46b48568232ec971819eab2b0009060c463f636bd7c204.asa [new file with mode: 0644]
usr.sbin/rpki-client/output-bgpd.c

diff --git a/regress/usr.sbin/rpki-client/aspa/d6915eb78c75cab0bc46b48568232ec971819eab2b0009060c463f636bd7c204.asa b/regress/usr.sbin/rpki-client/aspa/d6915eb78c75cab0bc46b48568232ec971819eab2b0009060c463f636bd7c204.asa
new file mode 100644 (file)
index 0000000..30a08a9
Binary files /dev/null and b/regress/usr.sbin/rpki-client/aspa/d6915eb78c75cab0bc46b48568232ec971819eab2b0009060c463f636bd7c204.asa differ
index eddd1ce..5709ec7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: output-bgpd.c,v 1.26 2023/01/20 15:42:34 claudio Exp $ */
+/*     $OpenBSD: output-bgpd.c,v 1.27 2023/04/19 19:26:26 job Exp $ */
 /*
  * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -67,11 +67,11 @@ output_bgpd(FILE *out, struct vrp_tree *vrps, struct brk_tree *brks,
                                return -1;
                        switch (vap->providers[i].afi) {
                        case AFI_IPV4:
-                               if (fprintf(out, "inet") < 0)
+                               if (fprintf(out, " inet") < 0)
                                        return -1;
                                break;
                        case AFI_IPV6:
-                               if (fprintf(out, "inet6") < 0)
+                               if (fprintf(out, " inet6") < 0)
                                        return -1;
                                break;
                        }