summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-28 15:17:42 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-28 15:17:42 +0400
commite1803284cd6e5c86772b298fd203b64c9e090351 (patch)
tree68294e305afa0b744e369b9b99d9b55615193b23
parent7ed8ac7bcb54df908bd4a5f8b915ec1fdc483ac7 (diff)
downloadrspamd-e1803284cd6e5c86772b298fd203b64c9e090351.tar.gz
rspamd-e1803284cd6e5c86772b298fd203b64c9e090351.zip
* Fix initializing of http reply structure to avoid core dumps when we got connection errors
-rw-r--r--src/map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index 5ed1cfe40..8bef4d179 100644
--- a/src/map.c
+++ b/src/map.c
@@ -676,6 +676,7 @@ http_callback (int fd, short what, void *ud)
cbd->data = data;
cbd->state = 0;
cbd->fd = sock;
+ cbd->reply = NULL;
event_add (&cbd->ev, &cbd->tv);
}
}