diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-15 04:14:03 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-15 04:14:03 +0000 |
commit | 550145d49e2bc6643758197dde2e0e92ec1e022b (patch) | |
tree | 94683303cee2790b8bb87b4761574551d88c79f5 /src | |
parent | f0b686199805c70780565d736158496af301320f (diff) | |
download | tinyproxy-550145d49e2bc6643758197dde2e0e92ec1e022b.tar.gz tinyproxy-550145d49e2bc6643758197dde2e0e92ec1e022b.zip |
Changed the variable type in read_request_line() to an unsigned variable
in order to detect negative returns.
Diffstat (limited to 'src')
-rw-r--r-- | src/reqs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |