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/simple.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'daemon/simple.c') diff --git a/daemon/simple.c b/daemon/simple.c index fca0e28..b37922e 100644 --- a/daemon/simple.c +++ b/daemon/simple.c @@ -142,7 +142,7 @@ static int validate_digest(ha_request_t* rq, const char* user, digest_context_t* fclose(f); - if(ha_buferr(rq->buf)) + if(CHECK_RBUF(rq)) return HA_CRITERROR; return ret; @@ -208,7 +208,7 @@ static int validate_basic(ha_request_t* rq, const char* user, const char* passwo ha_lock(NULL); /* Check the password */ - t2 = (const char*)crypt(password, t); + t2 = (char*)crypt(password, t); ha_unlock(NULL); @@ -246,13 +246,13 @@ static int validate_basic(ha_request_t* rq, const char* user, const char* passwo break; } - if(ha_buferr(rq->buf)) + if(CHECK_RBUF(rq)) break; } fclose(f); - if(ha_buferr(rq->buf)) + if(CHECK_RBUF(rq)) return HA_CRITERROR; return ret; -- cgit v1.2.3