From: jsg Date: Fri, 6 Aug 2010 14:32:13 +0000 (+0000) Subject: Correct a problem which could cause the wrong af to be displayed. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=30224d17d55808a48027508b34c709e4ed3554ca;p=openbsd Correct a problem which could cause the wrong af to be displayed. Found via the clang static analyser. ok henning@ claudio@ deraadt@ --- 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 @@ -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)); }