summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/irr_output.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2007-03-05 10:10:40 +0000
committerhenning <henning@openbsd.org>2007-03-05 10:10:40 +0000
commita9ac02a91eea65372bd8548787d0484dd78ebd16 (patch)
tree2db400678be86e868d695e76de4ad0ff1eb471d1 /usr.sbin/bgpctl/irr_output.c
parentadd a reminder about the extra attach function (diff)
downloadwireguard-openbsd-a9ac02a91eea65372bd8548787d0484dd78ebd16.tar.xz
wireguard-openbsd-a9ac02a91eea65372bd8548787d0484dd78ebd16.zip
prevent re-use of shit in pbuf from previous rules
Diffstat (limited to 'usr.sbin/bgpctl/irr_output.c')
-rw-r--r--usr.sbin/bgpctl/irr_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/irr_output.c b/usr.sbin/bgpctl/irr_output.c
index 8d6152d6a11..5a90e8c6646 100644
--- a/usr.sbin/bgpctl/irr_output.c
+++ b/usr.sbin/bgpctl/irr_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_output.c,v 1.9 2007/03/04 20:31:22 henning Exp $ */
+/* $OpenBSD: irr_output.c,v 1.10 2007/03/05 10:10:40 henning Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -216,6 +216,7 @@ print_rule(FILE *fh, struct policy_item *pi, char *sourceas,
if (pi->action)
action = action_torule(pi->action);
+ pbuf[0] = '\0';
if (prefix != NULL) {
strlcpy(pbuf, " prefix ", sizeof(pbuf));
offset = strlen(pbuf);