mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
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:
parent
ae09ac4ae0
commit
8863ff7625
3
http.c
3
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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user