From 30224d17d55808a48027508b34c709e4ed3554ca Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 6 Aug 2010 14:32:13 +0000 Subject: [PATCH] Correct a problem which could cause the wrong af to be displayed. Found via the clang static analyser. ok henning@ claudio@ deraadt@ --- usr.sbin/bgpd/printconf.c | 4 ++-- 1 file 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 @@ -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)); } -- 2.20.1