aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-05-27 03:41:09 +0000
committerRoger Dingledine <arma@torproject.org>2007-05-27 03:41:09 +0000
commite13bf01a9fe9f3fb57ea4f361bb7b309f2cb78ae (patch)
tree0dddba5603fc1c9fd39469732f3652b044a0e5e3 /src
parentc8fd65a936ccf0fcf09ba3eeef8a420015ff1861 (diff)
downloadtor-e13bf01a9fe9f3fb57ea4f361bb7b309f2cb78ae.tar
tor-e13bf01a9fe9f3fb57ea4f361bb7b309f2cb78ae.tar.gz
fix a seg fault when my auth dirserver accepted a posted descriptor
(dirserv_add_multiple_descriptors doesn't set msg if there's no failure.) svn:r10358
Diffstat (limited to 'src')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 2e62edd3a..4ac44df10 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1455,7 +1455,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,"status line too long.");
return;
}