From 4faa3b65abad58a20c5e7e401361d30188460a83 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 17 Aug 2004 22:54:16 +0000 Subject: Better message handling when buffer runs out of memory. --- daemon/httpauthd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'daemon/httpauthd.c') diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c index 4450b7a..8b8617e 100644 --- a/daemon/httpauthd.c +++ b/daemon/httpauthd.c @@ -922,7 +922,7 @@ static int httpauth_ready(ha_request_t* rq, int ofd) /* We send a ready banner to our client */ - if(ha_buferr(rq->buf)) + if(CHECK_RBUF(rq)) return httpauth_error(rq, ofd, HA_CRITERROR); else @@ -1072,7 +1072,7 @@ static int httpauth_processor(int ifd, int ofd) r = httpauth_read(&rq, ifd); - if(ha_buferr(&buf)) + if(CHECK_RBUF(&rq)) r = HA_CRITERROR; if(r < 0) @@ -1112,7 +1112,7 @@ static int httpauth_processor(int ifd, int ofd) break; }; - if(ha_buferr(&buf)) + if(CHECK_RBUF(&rq)) r = HA_CRITERROR; if(r < 0) -- cgit v1.2.3