summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-01-10 00:35:21 +0100
committerMichael Adam <obnox@samba.org>2010-01-10 01:49:14 +0100
commite1e9e53d45e6ce1eac20a38c2413a018f9eeaa57 (patch)
treec53fbfdec7fc1ee719bea26cd29fdfdf4c8ee849
parent0bfc0e90c18c483179dc132b4b2a2a57ee1c4fa2 (diff)
downloadtinyproxy-e1e9e53d45e6ce1eac20a38c2413a018f9eeaa57.tar.gz
tinyproxy-e1e9e53d45e6ce1eac20a38c2413a018f9eeaa57.zip
reqs:process_client_headers: polish logic flow a bit.
Michael
-rw-r--r--src/reqs.c11
1 files changed, 6 insertions, 5 deletions
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;
}
/*