summaryrefslogtreecommitdiffhomepage
path: root/src/reqs.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-15 04:14:03 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-15 04:14:03 +0000
commit550145d49e2bc6643758197dde2e0e92ec1e022b (patch)
tree94683303cee2790b8bb87b4761574551d88c79f5 /src/reqs.c
parentf0b686199805c70780565d736158496af301320f (diff)
Changed the variable type in read_request_line() to an unsigned variable
in order to detect negative returns.
Diffstat (limited to 'src/reqs.c')
-rw-r--r--src/reqs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reqs.c b/src/reqs.c
index 154298b..b212a1f 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -1,4 +1,4 @@
-/* $Id: reqs.c,v 1.58 2002-04-15 02:07:27 rjkaes Exp $
+/* $Id: reqs.c,v 1.59 2002-04-15 04:14:03 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
@@ -137,7 +137,7 @@ check_allowed_connect_ports(int port)
static int
read_request_line(struct conn_s *connptr)
{
- size_t len;
+ ssize_t len;
retry:
len = readline(connptr->client_fd, &connptr->request_line);