diff options
author | Stef Walter <stef@memberwebs.com> | 2005-03-22 23:59:38 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2005-03-22 23:59:38 +0000 |
commit | 84f393a6cf75df90c7836fc2f3356a5543983779 (patch) | |
tree | 6de338710d462172e3cd6a31d946e4ae99d55268 /daemon/bd.c | |
parent | 3ecaf9c3c9bb83f5e611beaeeccc19909630036a (diff) |
Fix memory and buffer problems.
Diffstat (limited to 'daemon/bd.c')
-rw-r--r-- | daemon/bd.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |