summaryrefslogtreecommitdiff
path: root/daemon/simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/simple.c')
-rw-r--r--daemon/simple.c8
1 files changed, 4 insertions, 4 deletions
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;