Module: sip-router Branch: master Commit: 058c7ead662c87834edf39de2ffa4e386cc78cd4 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=058c7ead...
Author: Marius Bucur marius.bucur@1and1.ro Committer: Marius Bucur marius.bucur@1and1.ro Date: Fri Jan 14 17:31:25 2011 +0200
modules_l/presence/notify.c fixed null pointer bug
Added an additional check to avoid a possible dereference of a null pointer.
---
modules_k/presence/notify.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/presence/notify.c b/modules_k/presence/notify.c index 6f471c3..2c90640 100644 --- a/modules_k/presence/notify.c +++ b/modules_k/presence/notify.c @@ -1694,7 +1694,7 @@ void p_tm_callback( struct cell *t, int type, struct tmcb_params *ps) ((c_back_param*)(*ps->param))->to_tag.s== NULL) { LM_DBG("message id not received\n"); - if(*ps->param !=NULL ) + if(ps->param != NULL && *ps->param !=NULL) free_cbparam((c_back_param*)(*ps->param)); return; }