check for null qrealm too.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3405 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2ce49f8f0b
commit
814fefdfba
|
@ -4160,7 +4160,7 @@ static void sip_r_register(int status,
|
|||
duprealm = strdup(realm);
|
||||
qrealm = duprealm;
|
||||
|
||||
while(*qrealm && *qrealm == '"') {
|
||||
while(qrealm && *qrealm && *qrealm == '"') {
|
||||
qrealm++;
|
||||
}
|
||||
if ((p = strchr(qrealm, '"'))) {
|
||||
|
|
Loading…
Reference in New Issue