[sr-dev] git:master: cfgutils: init probability pointer to NULL
Daniel-Constantin Mierla
miconda at gmail.com
Thu Oct 10 12:47:20 CEST 2013
Module: sip-router
Branch: master
Commit: ac5835c0aff657cae169432466851c9f2cbca8ad
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ac5835c0aff657cae169432466851c9f2cbca8ad
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Thu Oct 10 12:45:45 2013 +0200
cfgutils: init probability pointer to NULL
- otherwise it can be an attempt to free it when the kamailio does not
start due to config errors
- reported by Dragos Oancea
---
modules/cfgutils/cfgutils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/cfgutils/cfgutils.c b/modules/cfgutils/cfgutils.c
index 98d10fa..8416e9c 100644
--- a/modules/cfgutils/cfgutils.c
+++ b/modules/cfgutils/cfgutils.c
@@ -131,7 +131,7 @@ static int mod_init(void);
static void mod_destroy(void);
static int initial_prob = 10;
-static int *probability;
+static int *probability = NULL;
static char config_hash[MD5_LEN];
static char* hash_file = NULL;
More information about the sr-dev
mailing list