From a11e012e8661629d665e992e765741a5eaa7d017 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Sun, 8 Sep 2013 13:48:34 +0000 Subject: security: Fix some typos and potential NULL-deref This patch against the git tree fixes minor typos, some of them possibily leading to NULL-pointer dereference in rare conditions. Signed-off-by: Remi Gacogne Signed-off-by: Joachim Nilsson Acked-by: Feng Lu --- lib/vty.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/vty.c') diff --git a/lib/vty.c b/lib/vty.c index 0d6345c8..96cb1e4b 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -1856,9 +1856,11 @@ vty_serv_sock_family (const char* addr, unsigned short port, int family) { case AF_INET: naddr=&su.sin.sin_addr; + break; #ifdef HAVE_IPV6 case AF_INET6: naddr=&su.sin6.sin6_addr; + break; #endif } -- cgit v1.2.3