From 1ee72102fbe722d232d74abc4660a8b134cec8d6 Mon Sep 17 00:00:00 2001
From: Bart Van Assche <bvanassche@acm.org>
Date: Sat, 23 May 2015 07:32:53 +0200
Subject: [PATCH] snmplib, UDPIPv6 transport: Add a missing return statement

Detected by Coverity.

Upstream-Status: backport

Signed-off-by: Li Zhou <li.zhou@windriver.com>
---
 snmplib/transports/snmpUDPIPv6Domain.c | 1 +
 1 file changed, 1 insertion(+)

Index: net-snmp-5.7.3/snmplib/transports/snmpUDPIPv6Domain.c
===================================================================
--- net-snmp-5.7.3.orig/snmplib/transports/snmpUDPIPv6Domain.c
+++ net-snmp-5.7.3/snmplib/transports/snmpUDPIPv6Domain.c
@@ -305,6 +305,7 @@ netsnmp_udp6_transport(struct sockaddr_i
                                  errno, strerror(errno)));
                 netsnmp_socketbase_close(t);
                 netsnmp_transport_free(t);
+                return NULL;
             }
         }
         /*
