From 7812934c64ee7a3d4c6a123d64df9aeb644d51b1 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Tue, 18 Aug 1998 05:26:58 +0000 Subject: [PATCH] fix checking hash_create() return value --- src/acl.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/acl.cc b/src/acl.cc index 9c78e18769..a960c27434 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -1,6 +1,6 @@ /* - * $Id: acl.cc,v 1.176 1998/08/17 22:04:54 wessels Exp $ + * $Id: acl.cc,v 1.177 1998/08/17 23:26:58 wessels Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -670,11 +670,8 @@ aclParseProxyAuth(void *data) p->timeout = 10; /* First time around, 7921 should be big enough */ - if ((p->hash = hash_create((HASHCMP *) strcmp, 7921, hash_string)) < 0) { - debug(28, 0) ("aclParseProxyAuth: cannot create hash table, turning proxy_auth off\n"); - *q = NULL; - return; - } + p->hash = hash_create((HASHCMP *) strcmp, 7921, hash_string); + assert(p->hash); *q = p; return; } -- 2.47.3