Module: kamailio
Branch: 5.1
Commit: c2f0c834e9400d412f958e489887e90b234812a2
URL:
https://github.com/kamailio/kamailio/commit/c2f0c834e9400d412f958e489887e90…
Author: Luis Azedo <luis(a)2600hz.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: 2018-10-01T20:36:38+01:00
nathelper: initialize local variable
(cherry picked from commit c814f9fb6aa20ae18253f0d165795516a8869085)
---
Modified: src/modules/nathelper/nathelper.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c2f0c834e9400d412f958e489887e90…
Patch:
https://github.com/kamailio/kamailio/commit/c2f0c834e9400d412f958e489887e90…
---
diff --git a/src/modules/nathelper/nathelper.c b/src/modules/nathelper/nathelper.c
index 4042af3b1a..c616aa42eb 100644
--- a/src/modules/nathelper/nathelper.c
+++ b/src/modules/nathelper/nathelper.c
@@ -1646,7 +1646,7 @@ static int ki_fix_nated_sdp(sip_msg_t *msg, int level)
static int fix_nated_sdp_f(struct sip_msg *msg, char *str1, char *str2)
{
int level;
- str ip;
+ str ip = {0,0};
if(fixup_get_ivalue(msg, (gparam_t *)str1, &level) != 0) {
LM_ERR("failed to get value for first parameter\n");