Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 2014 10:11:34 GMT
From:      shonali@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r272165 - soc2014/shonali/head/contrib/bsnmp/snmpd
Message-ID:  <201408101011.s7AABYlA020718@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shonali
Date: Sun Aug 10 10:11:33 2014
New Revision: 272165
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=272165

Log:
  Made corrections in the switch statements(missing a break;)
  

Modified:
  soc2014/shonali/head/contrib/bsnmp/snmpd/trap.c

Modified: soc2014/shonali/head/contrib/bsnmp/snmpd/trap.c
==============================================================================
--- soc2014/shonali/head/contrib/bsnmp/snmpd/trap.c	Sun Aug 10 10:09:07 2014	(r272164)
+++ soc2014/shonali/head/contrib/bsnmp/snmpd/trap.c	Sun Aug 10 10:11:33 2014	(r272165)
@@ -765,7 +765,6 @@
 int
 target_activate_address(struct target_address *addrs)
 {
-        /* XXX - IPv4/IPv6 - Check if there is a better way of determining address type */
         struct sockaddr_in sa;
         struct sockaddr_in6 sa6; 
  
@@ -794,7 +793,7 @@
                         	(void)close(addrs->socket);
                         	return (SNMP_ERR_GENERR);
                 	}
-				
+			break;
 
                 case TransportAddressIPv6 : 
 			if ((addrs->socket = socket(PF_INET6, SOCK_DGRAM, 0)) == -1) {
@@ -816,7 +815,7 @@
 	                        (void)close(addrs->socket);
 	                        return (SNMP_ERR_GENERR);
 	                }
-				
+			break;
 				
                 default:
                         return (NULL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408101011.s7AABYlA020718>