Module: kamailio
Branch: master
Commit: ddaebe5ce4e903a28ab97339a4f9bcf14ca3cbf4
URL:
https://github.com/kamailio/kamailio/commit/ddaebe5ce4e903a28ab97339a4f9bcf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-30T18:03:07+01:00
secfilter: init vars to avoid unitialized usage
---
Modified: src/modules/secfilter/secfilter.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ddaebe5ce4e903a28ab97339a4f9bcf…
Patch:
https://github.com/kamailio/kamailio/commit/ddaebe5ce4e903a28ab97339a4f9bcf…
---
diff --git a/src/modules/secfilter/secfilter.c b/src/modules/secfilter/secfilter.c
index 37b1ededfd..0111792214 100644
--- a/src/modules/secfilter/secfilter.c
+++ b/src/modules/secfilter/secfilter.c
@@ -401,12 +401,12 @@ Return codes:
*/
static int check_user(struct sip_msg *msg, int type)
{
- str name;
- str user;
- str domain;
+ str name = STR_NULL;
+ str user = STR_NULL;
+ str domain = STR_NULL;
int res = 0;
int nlen, ulen, dlen;
- struct str_list *list;
+ struct str_list *list = NULL;
switch(type) {
case 1: