mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 14:26:30 -04:00
Correct a debug message in evhttp_parse_request_line
The old message reported that evhttp_decode_uri had failed; in fact, strdup had failed. Found by Michael Lenaghan.
This commit is contained in:
parent
5f2e250753
commit
35df59e9e1
2
http.c
2
http.c
@ -1294,7 +1294,7 @@ evhttp_parse_request_line(struct evhttp_request *req, char *line)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((req->uri = strdup(uri)) == NULL) {
|
if ((req->uri = strdup(uri)) == NULL) {
|
||||||
event_debug(("%s: evhttp_decode_uri", __func__));
|
event_debug(("%s: strdup", __func__));
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user