r13082@catbus: nickm | 2007-05-30 00:53:20 -0400
Just in case we have one of the bugs that turned up in the alpha series, backport the patch to tolerate a null reason_phrase in our status line. svn:r10406
This commit is contained in:
parent
2bb833b43d
commit
7bd9c2de24
|
@ -1361,7 +1361,7 @@ write_http_status_line(dir_connection_t *conn, int status,
|
|||
{
|
||||
char buf[256];
|
||||
if (tor_snprintf(buf, sizeof(buf), "HTTP/1.0 %d %s\r\n\r\n",
|
||||
status, reason_phrase) < 0) {
|
||||
status, reason_phrase ? reason_phrase : "OK") < 0) {
|
||||
log_warn(LD_BUG,"Bug: status line too long.");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue