diff options
author | Michael Adam <obnox@samba.org> | 2010-01-10 00:35:21 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-01-10 01:49:14 +0100 |
commit | e1e9e53d45e6ce1eac20a38c2413a018f9eeaa57 (patch) | |
tree | c53fbfdec7fc1ee719bea26cd29fdfdf4c8ee849 /src | |
parent | 0bfc0e90c18c483179dc132b4b2a2a57ee1c4fa2 (diff) | |
download | tinyproxy-e1e9e53d45e6ce1eac20a38c2413a018f9eeaa57.tar.gz tinyproxy-e1e9e53d45e6ce1eac20a38c2413a018f9eeaa57.zip |
reqs:process_client_headers: polish logic flow a bit.
Michael
Diffstat (limited to 'src')
-rw-r--r-- | src/reqs.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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; } /* |