summaryrefslogtreecommitdiff
path: root/daemon/digest.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/digest.c
parent2888f640a34e34d5a85841976fb8937c4a7774a0 (diff)
Better message handling when buffer runs out of memory.
Diffstat (limited to 'daemon/digest.c')
-rw-r--r--daemon/digest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/digest.c b/daemon/digest.c
index 968399a..5d91995 100644
--- a/daemon/digest.c
+++ b/daemon/digest.c
@@ -338,7 +338,7 @@ int digest_pre_check(digest_context_t* dg, const ha_context_t* opts, ha_buffer_t
if(ha_uriparse(buf, dg->client.uri, &d_uri) < 0)
{
- if(ha_buferr(buf))
+ if(CHECK_BUF(buf))
return HA_CRITERROR;
ha_messagex(NULL, LOG_WARNING, "digest response constains invalid uri: %s", dg->client.uri);
@@ -349,7 +349,7 @@ int digest_pre_check(digest_context_t* dg, const ha_context_t* opts, ha_buffer_t
if(ha_uriparse(buf, dg->server_uri, &s_uri) < 0)
{
- if(ha_buferr(buf))
+ if(CHECK_BUF(buf))
return HA_CRITERROR;
ha_messagex(NULL, LOG_ERR, "server sent us an invalid uri: %s", dg->server_uri);