mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
Version 0.3.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
acl.c
6
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)) {
|
||||
|
||||
Reference in New Issue
Block a user