fix http.c to compile properly with USE_DEBUG; from Christopher Layne

svn:r430
This commit is contained in:
Niels Provos 2007-09-15 15:50:11 +00:00
parent 640c61bac9
commit b835ee085f
2 changed files with 4 additions and 3 deletions

View File

@ -11,3 +11,4 @@ Changes in current version:
o Fix buffer size and string generation in evdns_resolve_reverse_ipv6(). 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 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 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
View File

@ -1174,7 +1174,7 @@ evhttp_add_header(struct evkeyvalq *headers,
if (strchr(value, '\r') != NULL || strchr(value, '\n') != NULL || if (strchr(value, '\r') != NULL || strchr(value, '\n') != NULL ||
strchr(key, '\r') != NULL || strchr(key, '\n') != NULL) { strchr(key, '\r') != NULL || strchr(key, '\n') != NULL) {
/* drop illegal headers */ /* drop illegal headers */
event_debug(("%s: dropping illegal header\n")); event_debug(("%s: dropping illegal header\n", __func__));
return (-1); return (-1);
} }
@ -1499,7 +1499,7 @@ evhttp_connection_connect(struct evhttp_connection *evcon)
evcon->fd = bind_socket(evcon->bind_address, 0); evcon->fd = bind_socket(evcon->bind_address, 0);
if (evcon->fd == -1) { if (evcon->fd == -1) {
event_debug(("%s: failed to bind to \"%s\"", event_debug(("%s: failed to bind to \"%s\"",
__func__, bind_address)); __func__, evcon->bind_address));
return (-1); return (-1);
} }
@ -2439,7 +2439,7 @@ socket_connect(int fd, const char *address, unsigned short port)
if (ai == NULL) { if (ai == NULL) {
event_debug(("%s: make_addrinfo: \"%s:%d\"", event_debug(("%s: make_addrinfo: \"%s:%d\"",
__func__, evcon->address, evcon->port)); __func__, address, port));
return (-1); return (-1);
} }