Module: kamailio
Branch: master
Commit: afff18592998cb14561cf4fd95acd1b4866fd994
URL:
https://github.com/kamailio/kamailio/commit/afff18592998cb14561cf4fd95acd1b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-28T13:28:05+02:00
ims_ipsec_pcscf: initialize variable to fix warnings
---
Modified: src/modules/ims_ipsec_pcscf/ipsec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/afff18592998cb14561cf4fd95acd1b…
Patch:
https://github.com/kamailio/kamailio/commit/afff18592998cb14561cf4fd95acd1b…
---
diff --git a/src/modules/ims_ipsec_pcscf/ipsec.c b/src/modules/ims_ipsec_pcscf/ipsec.c
index 10841c74b2..45e82ddf3e 100644
--- a/src/modules/ims_ipsec_pcscf/ipsec.c
+++ b/src/modules/ims_ipsec_pcscf/ipsec.c
@@ -681,8 +681,8 @@ static int delete_unused_sa_cb(const struct nlmsghdr *nlh, void
*data)
void *cp;
str received_host;
ip_addr_t received_host_addr;
- ipsec_t ipsec;
-
+ ipsec_t ipsec = {0};
+
cp = ((struct del_tunnels*)data)->contacts;
while (1) {
memcpy(&(received_host.len), cp, sizeof(received_host.len));
@@ -1080,4 +1080,4 @@ int delete_unused_tunnels()
free(buf);
return 0;
-}
\ No newline at end of file
+}