Module: kamailio
Branch: master
Commit: 5c48d437935e971482c9bbf41f067d120911e2c8
URL:
https://github.com/kamailio/kamailio/commit/5c48d437935e971482c9bbf41f067d1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-03-26T13:19:03+01:00
acc_diameter: init variables for safer cleanup
---
Modified: src/modules/acc_diameter/diam_message.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5c48d437935e971482c9bbf41f067d1…
Patch:
https://github.com/kamailio/kamailio/commit/5c48d437935e971482c9bbf41f067d1…
---
diff --git a/src/modules/acc_diameter/diam_message.c
b/src/modules/acc_diameter/diam_message.c
index 7388f44c93..f4f65e7019 100644
--- a/src/modules/acc_diameter/diam_message.c
+++ b/src/modules/acc_diameter/diam_message.c
@@ -188,11 +188,11 @@ AAAReturnCode AAASetMessageResultCode(
AAAMessage* AAATranslateMessage( unsigned char* source, unsigned int sourceLen,
int attach_buf)
{
- unsigned char *ptr;
- AAAMessage *msg;
+ unsigned char *ptr = NULL;
+ AAAMessage *msg = NULL;
unsigned char version;
unsigned int msg_len;
- AAA_AVP *avp;
+ AAA_AVP *avp = NULL;
unsigned int avp_code;
unsigned char avp_flags;
unsigned int avp_len;