r15224@tombo: nickm | 2008-04-17 15:19:24 -0400

Oops. We need to make sure that strdup wasn't oom.


svn:r718
This commit is contained in:
Nick Mathewson 2008-04-17 19:19:36 +00:00
parent ae09ac4ae0
commit 8863ff7625

3
http.c
View File

@ -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));