mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 18:38:02 +00:00
Don't blow up if we get NULL when trying to parse out the full name field
(fixed for Jared in the training room) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@156012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -582,7 +582,7 @@ static int search_directory(const char *context, struct ast_config *vmcfg, struc
|
|||||||
strsep(&bufptr, ",");
|
strsep(&bufptr, ",");
|
||||||
pos = strsep(&bufptr, ",");
|
pos = strsep(&bufptr, ",");
|
||||||
|
|
||||||
res = check_match(&item, pos, v->name, ext, use_first_name);
|
res = check_match(&item, S_OR(pos, ""), v->name, ext, use_first_name);
|
||||||
if (!res)
|
if (!res)
|
||||||
continue;
|
continue;
|
||||||
else if (res < 0)
|
else if (res < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user