Module: kamailio
Branch: master
Commit: f359625bf671a38ec0aa967e2632a4bbdbfe59af
URL:
https://github.com/kamailio/kamailio/commit/f359625bf671a38ec0aa967e2632a4b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-01T08:51:57+02:00
pua_reginfo: init vars to avoid accessing invalid value on error
---
Modified: src/modules/pua_reginfo/notify.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f359625bf671a38ec0aa967e2632a4b…
Patch:
https://github.com/kamailio/kamailio/commit/f359625bf671a38ec0aa967e2632a4b…
---
diff --git a/src/modules/pua_reginfo/notify.c b/src/modules/pua_reginfo/notify.c
index 853dbcc878..754a2ed099 100644
--- a/src/modules/pua_reginfo/notify.c
+++ b/src/modules/pua_reginfo/notify.c
@@ -232,8 +232,8 @@ int process_body(str notify_body, udomain_t * domain) {
char * expires_char, * cseq_char;
int cseq = 0;
int len;
- urecord_t * ul_record;
- ucontact_t * ul_contact;
+ urecord_t * ul_record = NULL;
+ ucontact_t * ul_contact = NULL;
struct sip_uri parsed_aor;
/* Temporary */