Return on error
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 20:11:31 +0000 (15:11 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 20:11:31 +0000 (15:11 -0500)
src/lib/tcp.c

index c364e8f..88720b3 100644 (file)
@@ -77,6 +77,7 @@ int fr_tcp_socket(fr_ipaddr_t *ipaddr, int port)
                                fr_strerror_printf("Failed in setsockopt(): %s",
                                                   strerror(errno));
                                close(sockfd);       
+                               return -1;
                        } 
                }
 #endif /* IPV6_V6ONLY */