diff options
Diffstat (limited to 'net/openbgpd/files/patch-bgpd_config.c')
-rw-r--r-- | net/openbgpd/files/patch-bgpd_config.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/openbgpd/files/patch-bgpd_config.c b/net/openbgpd/files/patch-bgpd_config.c new file mode 100644 index 00000000000..c0a43a16d5a --- /dev/null +++ b/net/openbgpd/files/patch-bgpd_config.c @@ -0,0 +1,23 @@ +Index: bgpd/config.c +=================================================================== +RCS file: /home/cvs/private/hrs/openbgpd/bgpd/config.c,v +retrieving revision 1.1.1.1 +retrieving revision 1.1.1.2 +diff -u -p -r1.1.1.1 -r1.1.1.2 +--- bgpd/config.c 30 Jun 2009 05:46:15 -0000 1.1.1.1 ++++ bgpd/config.c 9 Jul 2009 16:49:54 -0000 1.1.1.2 +@@ -1,4 +1,4 @@ +-/* $OpenBSD: config.c,v 1.50 2007/10/13 16:35:20 deraadt Exp $ */ ++/* $OpenBSD: config.c,v 1.51 2009/01/26 23:10:02 claudio Exp $ */ + + /* + * Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org> +@@ -145,7 +145,7 @@ get_bgpid(void) + cur = ((struct sockaddr_in *)ifa->ifa_addr)->sin_addr.s_addr; + if ((cur & localnet) == localnet) /* skip 127/8 */ + continue; +- if (cur > ip) ++ if (ntohl(cur) > ntohl(ip)) + ip = cur; + } + freeifaddrs(ifap); |