Fix a seg fault on a registration. Line 7706, in parse_register_contact,
explicitly passes NULL as the "pass" argument to this function. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46055 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
a989f7cd47
commit
6e65bea242
1 changed files with 2 additions and 2 deletions
|
@ -2254,9 +2254,9 @@ static int parse_uri(char *uri, char *scheme,
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
/* init field as required */
|
/* init field as required */
|
||||||
if (*pass)
|
if (pass && *pass)
|
||||||
*pass = "";
|
*pass = "";
|
||||||
if (*port)
|
if (port && *port)
|
||||||
*port = "";
|
*port = "";
|
||||||
name = strsep(&uri, ";"); /* remove options */
|
name = strsep(&uri, ";"); /* remove options */
|
||||||
if (scheme) {
|
if (scheme) {
|
||||||
|
|
Loading…
Reference in a new issue