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:
Michael Jerris 2006-11-18 16:44:09 +00:00
parent 2ce49f8f0b
commit 814fefdfba
1 changed files with 1 additions and 1 deletions

View File

@ -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, '"'))) {