diff options
author | 2010-08-06 14:32:13 +0000 | |
---|---|---|
committer | 2010-08-06 14:32:13 +0000 | |
commit | 30224d17d55808a48027508b34c709e4ed3554ca (patch) | |
tree | 5690e9310f159710362f12ebede8c569d4e6eaf8 | |
parent | As part of a revamp of the PM1/GPE code, I write this diff to look for (diff) | |
download | wireguard-openbsd-30224d17d55808a48027508b34c709e4ed3554ca.tar.xz wireguard-openbsd-30224d17d55808a48027508b34c709e4ed3554ca.zip |
Correct a problem which could cause the wrong af to be displayed.
Found via the clang static analyser.
ok henning@ claudio@ deraadt@
-rw-r--r-- | usr.sbin/bgpd/printconf.c | 4 |
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)); } |