From 84f393a6cf75df90c7836fc2f3356a5543983779 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 22 Mar 2005 23:59:38 +0000 Subject: Fix memory and buffer problems. --- daemon/bd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'daemon/bd.c') diff --git a/daemon/bd.c b/daemon/bd.c index 09dc45f..cb4f2cf 100644 --- a/daemon/bd.c +++ b/daemon/bd.c @@ -140,7 +140,7 @@ static int save_cached_digest(bd_context_t* ctx, ha_context_t* c, if(!r) { - ha_messagex(NULL, LOG_CRIT, "out of memory"); + ha_memerr(NULL); return HA_CRITERROR; } @@ -168,7 +168,7 @@ static int add_cached_basic(bd_context_t* ctx, ha_context_t* c, if(!r) { - ha_messagex(NULL, LOG_CRIT, "out of memory"); + ha_memerr(NULL); return HA_CRITERROR; } @@ -183,7 +183,7 @@ digest_record_t* make_digest_rec(unsigned char* nonce, const char* user) if(!rec) { - ha_messagex(NULL, LOG_CRIT, "out of memory"); + ha_memerr(NULL); return NULL; } @@ -569,7 +569,7 @@ int bd_init(ha_context_t* context) /* The cache for digest records and basic */ if(!(ctx->cache = hsh_create(MD5_LEN))) { - ha_messagex(NULL, LOG_CRIT, "out of memory"); + ha_memerr(NULL); return HA_CRITERROR; } -- cgit v1.2.3