mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 23:05:03 -04:00
fix http.c to compile properly with USE_DEBUG; from Christopher Layne
svn:r430
This commit is contained in:
parent
640c61bac9
commit
b835ee085f
@ -11,3 +11,4 @@ Changes in current version:
|
||||
o Fix buffer size and string generation in evdns_resolve_reverse_ipv6().
|
||||
o Respond to nonstandard DNS queries with "NOTIMPL" rather than by ignoring them.
|
||||
o In DNS responses, the CD flag should be preserved, not the TC flag.
|
||||
o Fix http.c to compile properly with USE_DEBUG; from Christopher Layne
|
||||
|
6
http.c
6
http.c
@ -1174,7 +1174,7 @@ evhttp_add_header(struct evkeyvalq *headers,
|
||||
if (strchr(value, '\r') != NULL || strchr(value, '\n') != NULL ||
|
||||
strchr(key, '\r') != NULL || strchr(key, '\n') != NULL) {
|
||||
/* drop illegal headers */
|
||||
event_debug(("%s: dropping illegal header\n"));
|
||||
event_debug(("%s: dropping illegal header\n", __func__));
|
||||
return (-1);
|
||||
}
|
||||
|
||||
@ -1499,7 +1499,7 @@ evhttp_connection_connect(struct evhttp_connection *evcon)
|
||||
evcon->fd = bind_socket(evcon->bind_address, 0);
|
||||
if (evcon->fd == -1) {
|
||||
event_debug(("%s: failed to bind to \"%s\"",
|
||||
__func__, bind_address));
|
||||
__func__, evcon->bind_address));
|
||||
return (-1);
|
||||
}
|
||||
|
||||
@ -2439,7 +2439,7 @@ socket_connect(int fd, const char *address, unsigned short port)
|
||||
|
||||
if (ai == NULL) {
|
||||
event_debug(("%s: make_addrinfo: \"%s:%d\"",
|
||||
__func__, evcon->address, evcon->port));
|
||||
__func__, address, port));
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user