summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-26 19:33:09 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-26 19:33:09 +0000
commit1a8c914dd2872ea29bd656d54a63e5ddab2c082b (patch)
tree103d750f235795dec0d31f97e4afb0fb44c63a68 /src
parent95549891101f9c9e908c1df4373127b48607a43f (diff)
downloadtinyproxy-1a8c914dd2872ea29bd656d54a63e5ddab2c082b.tar.gz
tinyproxy-1a8c914dd2872ea29bd656d54a63e5ddab2c082b.zip
Changed the len type to ssize_t because we need to detect errors in the
recv() call. Thanks to Tom Cross for discovering this bug.
Diffstat (limited to 'src')
-rw-r--r--src/reqs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reqs.c b/src/reqs.c
index f5cf0a6..73a581a 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -1,4 +1,4 @@
-/* $Id: reqs.c,v 1.68 2002-04-26 16:43:20 rjkaes Exp $
+/* $Id: reqs.c,v 1.69 2002-04-26 19:33:09 rjkaes Exp $
*
* This is where all the work in tinyproxy is actually done. Incoming
* connections have a new thread created for them. The thread then
@@ -1077,7 +1077,7 @@ static int
connect_to_tunnel(struct conn_s *connptr)
{
char *request_buf;
- size_t len;
+ ssize_t len;
int pos;
request_buf = safemalloc(HTTP_LINE_LENGTH);