aboutsummaryrefslogtreecommitdiffstats
path: root/acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'acl.c')
-rwxr-xr-xacl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/acl.c b/acl.c
index 07579dc1d..6672b9a39 100755
--- a/acl.c
+++ b/acl.c
@@ -58,8 +58,10 @@ struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path)
path = path->next;
}
if (ha) {
- strtok(stuff, "/");
- nm = strtok(NULL, "/");
+ char *stringp=NULL;
+ stringp=stuff;
+ strsep(&stringp, "/");
+ nm = strsep(&stringp, "/");
if (!nm)
nm = "255.255.255.255";
if (!inet_aton(stuff, &ha->netaddr)) {