From e1e9e53d45e6ce1eac20a38c2413a018f9eeaa57 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 10 Jan 2010 00:35:21 +0100 Subject: reqs:process_client_headers: polish logic flow a bit. Michael --- src/reqs.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/reqs.c b/src/reqs.c index 73e0f1f..504b628 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -902,11 +902,12 @@ process_client_headers (struct conn_s *connptr, hashmap_t hashofheaders) * Spin here pulling the data from the client. */ PULL_CLIENT_DATA: - if (connptr->content_length.client > 0) - return pull_client_data (connptr, - connptr->content_length.client); - else - return ret; + if (connptr->content_length.client > 0) { + ret = pull_client_data (connptr, + connptr->content_length.client); + } + + return ret; } /* -- cgit v1.2.3