Commit 05b29683 authored by Pekka Pessi's avatar Pekka Pessi

Added null pointer check to auc_authorize() in iptsec/auth_client.c.

Patch proposed by Colin Whittaker <colinw@occamnetworks.com>.

darcs-hash:20060427204101-65a35-9687fab1b50ae116982576cf0de63e0978ff1202.gz
parent 9feba732
......@@ -745,7 +745,10 @@ msg_header_t *auc_digest_authorization(auth_client_t *ca,
*/
int auc_authorize(auth_client_t **auc_list, msg_t *msg, sip_t *sip)
{
sip_request_t *rq = sip->sip_request;
sip_request_t *rq = sip ? sip->sip_request : NULL;
if (!rq)
return 0;
return auc_authorization(auc_list, msg, (msg_pub_t *)sip,
rq->rq_method_name,
......
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