Module: kamailio Branch: master Commit: a009a5bf4f145b4e877e5ba41d218607c30849ec URL: https://github.com/kamailio/kamailio/commit/a009a5bf4f145b4e877e5ba41d218607...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2017-12-08T16:50:51+01:00
pua: safety check for params values
---
Modified: src/modules/pua/send_subscribe.c
---
Diff: https://github.com/kamailio/kamailio/commit/a009a5bf4f145b4e877e5ba41d218607... Patch: https://github.com/kamailio/kamailio/commit/a009a5bf4f145b4e877e5ba41d218607...
---
diff --git a/src/modules/pua/send_subscribe.c b/src/modules/pua/send_subscribe.c index 89b597a77a..b75290b936 100644 --- a/src/modules/pua/send_subscribe.c +++ b/src/modules/pua/send_subscribe.c @@ -803,7 +803,7 @@ ua_pres_t* subscribe_cbparam(subs_info_t* subs, int ua_flag) hentity->contact.len= subs->contact->len; size+= subs->contact->len;
- if(subs->outbound_proxy) + if(subs->outbound_proxy && subs->outbound_proxy->s) { hentity->outbound_proxy= (str*)((char*)hentity+ size); size+= sizeof(str); @@ -821,7 +821,7 @@ ua_pres_t* subscribe_cbparam(subs_info_t* subs, int ua_flag) { CONT_COPY(hentity, hentity->id, subs->id); } - if(subs->extra_headers) + if(subs->extra_headers && hentity->extra_headers->s) { hentity->extra_headers= (str*)((char*)hentity+ size); size+= sizeof(str);