diff options
author | Michael Adam <obnox@samba.org> | 2010-01-10 00:39:55 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-01-10 01:49:14 +0100 |
commit | 6c9a647576c935da3edc66093174eb0855b2be3d (patch) | |
tree | 8b55ddff90e7edd7d3705e9215bfa82495fa943c | |
parent | e1e9e53d45e6ce1eac20a38c2413a018f9eeaa57 (diff) |
reqs:handle_connection: untangle assignment from check
Michael
-rw-r--r-- | src/reqs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1352,7 +1352,8 @@ void handle_connection (int fd) /* * The "hashofheaders" store the client's headers. */ - if (!(hashofheaders = hashmap_create (HEADER_BUCKETS))) { + hashofheaders = hashmap_create (HEADER_BUCKETS); + if (hashofheaders == NULL) { update_stats (STAT_BADCONN); indicate_http_error (connptr, 503, "Internal error", "detail", |