Commit e058c366 authored by Pekka Pessi's avatar Pekka Pessi

outbound.c: fixed klocwork issues

darcs-hash:20080522104811-65a35-e8a671905c4739fcaabc416fcb5ac266cfef9c04.gz
parent 7950c603
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment