Changed all calls to strdup to safestrdup. This should provide better
memory usage tracking.
This commit is contained in:
1 parent
a66aae880c
commit
9a8d732a13
4 files changed
+9
-9
No files matched your search
@@ -1,4 +1,4 @@
|
||||
/* $Id: acl.c,v 1.13 2002-04-17 20:52:45 rjkaes Exp $
|
||||
/* $Id: acl.c,v 1.14 2002-04-18 17:59:21 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
|
||||
@@ -120,7 +120,7 @@ insert_acl(char *location, acl_access_t access_type)
|
||||
new_acl_ptr->netmask = 32;
|
||||
}
|
||||
|
||||
new_acl_ptr->location = strdup(location);
|
||||
new_acl_ptr->location = safestrdup(location);
|
||||
if (!new_acl_ptr->location) {
|
||||
safefree(new_acl_ptr);
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user