]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a crash due to too few arguments to RetryDial.
authorMark Michelson <mmichelson@digium.com>
Wed, 8 Apr 2009 19:16:49 +0000 (19:16 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 8 Apr 2009 19:16:49 +0000 (19:16 +0000)
(closes issue #14852)
Reported by: junky
Patches:
      retry_fix.diff uploaded by junky (license 177)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@187135 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 98e66ef9ab095548163ecee97a8f5778a1155f52..a38bcd6853aa4c68bafa841203083cd8a9f62a2b 100644 (file)
@@ -1872,7 +1872,7 @@ static int retrydial_exec(struct ast_channel *chan, void *data)
                }
        }
        
-       if ((dialdata = strchr(dialdata, '|'))) {
+       if (dialdata && (dialdata = strchr(dialdata, '|'))) {
                *dialdata++ = '\0';
        } else {
                ast_log(LOG_ERROR, "%s requires more arguments\n",rapp);