Browse Source

initialized hash in sn, too

pull/292/head
Logan007 4 years ago
parent
commit
8fb553ab03
  1. 3
      src/sn.c
  2. 3
      src/sn_utils.c

3
src/sn.c

@ -53,6 +53,9 @@ static int init_sn(n2n_sn_t * sss) {
#ifdef WIN32
initWin32();
#endif
pearson_hash_init();
memset(sss, 0, sizeof(n2n_sn_t));
sss->daemon = 1; /* By defult run as a daemon. */

3
src/sn_utils.c

@ -179,6 +179,9 @@ int sn_init(n2n_sn_t *sss)
#ifdef WIN32
initWin32();
#endif
pearson_hash_init();
memset(sss, 0, sizeof(n2n_sn_t));
sss->daemon = 1; /* By defult run as a daemon. */

Loading…
Cancel
Save