Skip to content
Snippets Groups Projects
Commit 4d17451c authored by Olle Johansson's avatar Olle Johansson
Browse files

Issue #7103 take two. Thanks Mikael!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 4c76028d
Branches
Tags
No related merge requests found
......@@ -1366,7 +1366,7 @@ static unsigned int parse_sip_options(struct sip_pvt *pvt, const char *supported
unsigned int profile = 0;
int i, found;
 
if (!pvt || ast_strlen_zero(supported) )
if (ast_strlen_zero(supported) )
return 0;
 
if (option_debug > 2 && sipdebug)
......@@ -1392,7 +1392,8 @@ static unsigned int parse_sip_options(struct sip_pvt *pvt, const char *supported
ast_log(LOG_DEBUG, "Found no match for SIP option: %s (Please file bug report!)\n", next);
}
 
pvt->sipoptions = profile;
if (pvt)
pvt->sipoptions = profile;
return profile;
}
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment