diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-03-05 10:10:41 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-03-05 10:10:41 +0000 |
commit | f1605bf28b54c0b6345837efc05b731454c9bea5 (patch) | |
tree | a7f35f4b0cfe5d67f9e21fd782717c4b536e2511 /usr.sbin | |
parent | 3b7f59986535db280d141ab13c5552c16ba624fe (diff) |
prevent re-use of shit in pbuf from previous rules
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpctl/irr_output.c | 3 |
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); |