From 814fefdfba4523e6389fe6fcd5ee36d044ae4aa6 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 18 Nov 2006 16:44:09 +0000 Subject: [PATCH] check for null qrealm too. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3405 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 295beac027..379536febb 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -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, '"'))) {