summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2007-05-27 18:54:25 +0000
committerhenning <henning@openbsd.org>2007-05-27 18:54:25 +0000
commit0187b3c9e0f9bb792f52982621c3a9bbdc3d3c6a (patch)
tree1e78d6c29f53e4d537e96134ebe7bafc226297b0
parentUnbreak cdboot and pxeboot machine memory +/-; bad mpf@. (diff)
downloadwireguard-openbsd-0187b3c9e0f9bb792f52982621c3a9bbdc3d3c6a.tar.xz
wireguard-openbsd-0187b3c9e0f9bb792f52982621c3a9bbdc3d3c6a.zip
initialize pfx->pfx_maxlen too, rotting in my tree for some time
-rw-r--r--usr.sbin/bgpctl/irr_prefix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/irr_prefix.c b/usr.sbin/bgpctl/irr_prefix.c
index 39b44f482e3..8bc0d7470d5 100644
--- a/usr.sbin/bgpctl/irr_prefix.c
+++ b/usr.sbin/bgpctl/irr_prefix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_prefix.c,v 1.14 2007/03/06 16:45:34 henning Exp $ */
+/* $OpenBSD: irr_prefix.c,v 1.15 2007/05/27 18:54:25 henning Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -103,7 +103,7 @@ prefixset_addmember(char *s)
}
pfx->af = AF_INET;
- pfx->len = len;
+ pfx->len = pfx->maxlen = len;
/* yes, there are dupes... e. g. from multiple sources */
for (i = 0; i < curpfxs->prefixcnt; i++)