Skip to content

Commit

Permalink
userblacklist: init variables for safer destroy at startup
Browse files Browse the repository at this point in the history
- reported by GH#42

(cherry picked from commit c28551c)
  • Loading branch information
miconda committed Feb 4, 2015
1 parent 008b03a commit 23e8ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/userblacklist/userblacklist.c
Expand Up @@ -169,7 +169,7 @@ struct source_list_t {

static gen_lock_t *lock = NULL;
static struct source_list_t *sources = NULL;
static struct dtrie_node_t *dtrie_root;
static struct dtrie_node_t *dtrie_root = NULL;


static int check_user_blacklist_fixup(void** param, int param_no)
Expand Down Expand Up @@ -627,7 +627,7 @@ static int init_source_list(void)
SHM_MEM_ERROR;
return -1;
}
sources->head = NULL;
memset(sources, 0, sizeof(struct source_list_t));
return 0;
}

Expand Down

0 comments on commit 23e8ab7

Please sign in to comment.