Skip to content

Commit

Permalink
permissions: init global pointer variables to null for safe shutdown …
Browse files Browse the repository at this point in the history
…at start

- reported by Olle E. Johansson, GH#41

(cherry picked from commit 165a3fc)
(cherry picked from commit 0421282)
  • Loading branch information
miconda committed Feb 4, 2015
1 parent 3bc1c97 commit e499db5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/permissions/address.c
Expand Up @@ -46,17 +46,17 @@

#define TABLE_VERSION 6

struct addr_list ***addr_hash_table; /* Ptr to current hash table ptr */
struct addr_list **addr_hash_table_1; /* Pointer to hash table 1 */
struct addr_list **addr_hash_table_2; /* Pointer to hash table 2 */
struct addr_list ***addr_hash_table = NULL; /* Ptr to current hash table ptr */
struct addr_list **addr_hash_table_1 = NULL; /* Pointer to hash table 1 */
struct addr_list **addr_hash_table_2 = NULL; /* Pointer to hash table 2 */

struct subnet **subnet_table; /* Ptr to current subnet table */
struct subnet *subnet_table_1; /* Ptr to subnet table 1 */
struct subnet *subnet_table_2; /* Ptr to subnet table 2 */
struct subnet **subnet_table = NULL; /* Ptr to current subnet table */
struct subnet *subnet_table_1 = NULL; /* Ptr to subnet table 1 */
struct subnet *subnet_table_2 = NULL; /* Ptr to subnet table 2 */

struct domain_name_list ***domain_list_table; /* Ptr to current domain name table */
static struct domain_name_list **domain_list_table_1; /* Ptr to domain name table 1 */
static struct domain_name_list **domain_list_table_2; /* Ptr to domain name table 2 */
struct domain_name_list ***domain_list_table = NULL; /* Ptr to current domain name table */
static struct domain_name_list **domain_list_table_1 = NULL; /* Ptr to domain name table 1 */
static struct domain_name_list **domain_list_table_2 = NULL; /* Ptr to domain name table 2 */


static db1_con_t* db_handle = 0;
Expand Down

0 comments on commit e499db5

Please sign in to comment.