From fe20698fb08faee0c186bd2fb8eb5e66c8d9d5f8 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Thu, 13 Nov 2014 13:33:14 +0200 Subject: [PATCH] Fixed a bug in httpd.c --- server/modules/protocol/httpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/modules/protocol/httpd.c b/server/modules/protocol/httpd.c index 175e0ad12..f5e347924 100644 --- a/server/modules/protocol/httpd.c +++ b/server/modules/protocol/httpd.c @@ -343,13 +343,14 @@ int n_connect = 0; if (poll_add_dcb(client) == -1) { + close(so); return n_connect; } n_connect++; } } } - close(so); + return n_connect; }