summaryrefslogtreecommitdiff
path: root/daemon/httpauthd.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-08-17 23:17:07 +0000
committerStef Walter <stef@memberwebs.com>2004-08-17 23:17:07 +0000
commit6df85597413840846409f7434941ed0f10ec4a38 (patch)
tree71968501063d017ae312a2a1fc7bf470bf19a0f5 /daemon/httpauthd.c
parent4faa3b65abad58a20c5e7e401361d30188460a83 (diff)
- Proper separation between common and daemon directories.
Diffstat (limited to 'daemon/httpauthd.c')
-rw-r--r--daemon/httpauthd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c
index 8b8617e..ad2f365 100644
--- a/daemon/httpauthd.c
+++ b/daemon/httpauthd.c
@@ -619,7 +619,10 @@ static int httpauth_read(ha_request_t* rq, int ifd)
r = ha_bufreadline(ifd, rq->buf);
if(r == -1)
+ {
+ ha_message(rq, LOG_ERR, "error reading from socket");
return -1;
+ }
/* Check if this is the last line */
if(r == 0)
@@ -686,7 +689,10 @@ static int httpauth_read(ha_request_t* rq, int ifd)
r = ha_bufreadline(ifd, rq->buf);
if(r == -1)
+ {
+ ha_message(rq, LOG_ERR, "error reading from socket");
return -1;
+ }
/* Check if this is the last line */
if(r == 0)
@@ -1246,7 +1252,7 @@ static int config_parse(const char* file, ha_buffer_t* buf)
ha_bufskip(buf);
if((more = ha_bufreadline(fd, buf)) == -1)
- return -1;
+ err(1, "couldn't read from configuration file: %s", file);
line++;