summaryrefslogtreecommitdiffhomepage
path: root/src/acl.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-09-08 18:58:37 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-09-08 18:58:37 +0000
commit0668e42e8f5ce3d900218233e35de64905026cac (patch)
tree0a8f5ce953763cf81d78d51d31263712b9d8da1b /src/acl.c
parentd5253ec5f435b26c50ca4cb649d3f47b800cbbd8 (diff)
Changed all the mallocs and callocs to use the new safemalloc and
safecalloc.
Diffstat (limited to 'src/acl.c')
-rw-r--r--src/acl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/acl.c b/src/acl.c
index 1b6d6d3..d03939b 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -1,4 +1,4 @@
-/* $Id: acl.c,v 1.5 2001-09-07 04:16:33 rjkaes Exp $
+/* $Id: acl.c,v 1.6 2001-09-08 18:58:37 rjkaes Exp $
*
* This system handles Access Control for use of this daemon. A list of
* domains, or IP addresses (including IP blocks) are stored in a list
@@ -24,6 +24,7 @@
#include "acl.h"
#include "log.h"
#include "sock.h"
+#include "utils.h"
struct acl_s {
acl_access_t acl_access;
@@ -93,7 +94,7 @@ int insert_acl(char *location, acl_access_t access_type)
rev_acl_ptr = &acl_ptr->next;
acl_ptr = acl_ptr->next;
}
- new_acl_ptr = malloc(sizeof(struct acl_s));
+ new_acl_ptr = safemalloc(sizeof(struct acl_s));
if (!new_acl_ptr) {
return -1;
}