diff --git a/http.c b/http.c index 93555b54..efd9f7b7 100644 --- a/http.c +++ b/http.c @@ -2275,6 +2275,9 @@ evhttp_get_request_connection( char *hostname = NULL, *portname = NULL; name_from_addr(sa, salen, &hostname, &portname); + if (hostname==NULL || portname==NULL) + return (NULL); + event_debug(("%s: new request from %s:%s on %d\n", __func__, hostname, portname, fd));