summaryrefslogtreecommitdiff
path: root/daemon/httpauthd.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-08-17 22:54:16 +0000
committerStef Walter <stef@memberwebs.com>2004-08-17 22:54:16 +0000
commit4faa3b65abad58a20c5e7e401361d30188460a83 (patch)
tree5c6bd3f1f2c9cc65ec9fc8d6a22824cde8fc40a1 /daemon/httpauthd.c
parent2888f640a34e34d5a85841976fb8937c4a7774a0 (diff)
Better message handling when buffer runs out of memory.
Diffstat (limited to 'daemon/httpauthd.c')
-rw-r--r--daemon/httpauthd.c6
1 files changed, 3 insertions, 3 deletions
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)