Correct a problem which could cause the wrong af to be displayed.
authorjsg <jsg@openbsd.org>
Fri, 6 Aug 2010 14:32:13 +0000 (14:32 +0000)
committerjsg <jsg@openbsd.org>
Fri, 6 Aug 2010 14:32:13 +0000 (14:32 +0000)
Found via the clang static analyser.
ok henning@ claudio@ deraadt@

usr.sbin/bgpd/printconf.c

index 0ff4929..2a61894 100644 (file)
@@ -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));
 }