summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-08-06 14:32:14 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-08-06 14:32:14 +0000
commitd0abe5d078169dc5a2254a9bbd4d5d5c5ac2b5f2 (patch)
treee90ba95ab07903b7fdcd5d02c4a6371c6a912afe /usr.sbin
parentc1f00f4f76dd0e3d2195b25bf859a2350f12c416 (diff)
Correct a problem which could cause the wrong af to be displayed.
Found via the clang static analyser. ok henning@ claudio@ deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/printconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c
index 0ff49296c49..2a618942276 100644
--- a/usr.sbin/bgpd/printconf.c
+++ b/usr.sbin/bgpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.83 2010/06/27 19:53:34 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.84 2010/08/06 14:32:13 jsg Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -311,7 +311,7 @@ print_af(u_int8_t aid)
*/
if (aid == AID_INET)
return ("inet");
- if (aid == AID_INET6);
+ if (aid == AID_INET6)
return ("inet6");
return (aid2str(aid));
}