Thu May 22 06:48:11 EDT 2008 Pekka.Pessi@nokia.com

* outbound.c: fixed klocwork issues


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8631 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-25 15:18:36 +00:00
parent c7ebd6a8a8
commit 4ba0be7696
2 changed files with 11 additions and 1 deletions

View File

@ -1 +1 @@
Sun May 25 11:17:39 EDT 2008
Sun May 25 11:18:13 EDT 2008

View File

@ -723,6 +723,9 @@ static int create_keepalive_message(outbound_t *ob, sip_t const *regsip)
unsigned d = ob->ob_keepalive.interval;
if (msg == NULL)
return -1;
assert(regsip); assert(regsip->sip_request);
if (m && m->m_params) {
@ -842,6 +845,13 @@ static int response_to_keepalive_options(outbound_t *ob,
if (status < 200)
return 0;
if (sip == NULL) {
SU_DEBUG_3(("outbound(%p): keepalive %u %s\n", (void *)ob->ob_owner,
status, phrase));
ob->ob_oo->oo_keepalive_error(ob->ob_owner, ob, status, phrase, TAG_END());
return 0;
}
if (status == 401 || status == 407) {
if (sip->sip_www_authenticate)
challenged += auc_challenge(ob->ob_keepalive.auc,