Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 1 | From 1ee72102fbe722d232d74abc4660a8b134cec8d6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Bart Van Assche <bvanassche@acm.org> |
| 3 | Date: Sat, 23 May 2015 07:32:53 +0200 |
| 4 | Subject: [PATCH] snmplib, UDPIPv6 transport: Add a missing return statement |
| 5 | |
| 6 | Detected by Coverity. |
| 7 | |
| 8 | Upstream-Status: backport |
| 9 | |
| 10 | Signed-off-by: Li Zhou <li.zhou@windriver.com> |
| 11 | --- |
| 12 | snmplib/transports/snmpUDPIPv6Domain.c | 1 + |
| 13 | 1 file changed, 1 insertion(+) |
| 14 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 15 | Index: net-snmp-5.7.3/snmplib/transports/snmpUDPIPv6Domain.c |
| 16 | =================================================================== |
| 17 | --- net-snmp-5.7.3.orig/snmplib/transports/snmpUDPIPv6Domain.c |
| 18 | +++ net-snmp-5.7.3/snmplib/transports/snmpUDPIPv6Domain.c |
| 19 | @@ -305,6 +305,7 @@ netsnmp_udp6_transport(struct sockaddr_i |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 20 | errno, strerror(errno))); |
| 21 | netsnmp_socketbase_close(t); |
| 22 | netsnmp_transport_free(t); |
| 23 | + return NULL; |
| 24 | } |
| 25 | } |
| 26 | /* |