missing return (-1) for failures on make_socket

svn:r338
This commit is contained in:
Niels Provos 2007-02-27 08:16:50 +00:00
parent f86cead099
commit 995a58a374

3
http.c
View File

@ -2261,7 +2261,7 @@ static int
make_socket(int should_bind, const char *address, u_short port)
{
int fd;
struct addrinfo ai, *aitop;
struct addrinfo ai, *aitop = NULL;
#ifdef HAVE_GETADDRINFO
char strport[NI_MAXSERV];
int ai_result;
@ -2276,6 +2276,7 @@ make_socket(int should_bind, const char *address, u_short port)
event_warn("getaddrinfo");
else
event_warnx("getaddrinfo: %s", gai_strerror(ai_result));
return (-1);
}
#else
if (fake_getaddrinfo(address, &ai) < 0) {