pua_reginfo: init vars to avoid accessing invalid value on error
authorDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 1 Aug 2017 06:49:19 +0000 (08:49 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 1 Aug 2017 06:51:57 +0000 (08:51 +0200)
src/modules/pua_reginfo/notify.c

index 853dbcc..754a2ed 100644 (file)
@@ -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 */