Browse Source

Update supernode.c (#800)

fix #799
pull/801/head
skyformat99 3 years ago
committed by GitHub
parent
commit
a87a124316
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/supernode.c

4
src/supernode.c

@ -294,9 +294,9 @@ static int setOption (int optkey, char *_optarg, n2n_sn_t *sss) {
sss->override_spoofing_protection = 1; sss->override_spoofing_protection = 1;
break; break;
case 'V': /* community file */ case 'V': /* version text */
strncpy(sss->version, _optarg, sizeof(n2n_version_t) - 1); /* mind the \0 terminator */ strncpy(sss->version, _optarg, sizeof(n2n_version_t) - 1); /* mind the \0 terminator */
break;
case 'c': /* community file */ case 'c': /* community file */
sss->community_file = calloc(1, strlen(_optarg) + 1); sss->community_file = calloc(1, strlen(_optarg) + 1);
if(sss->community_file) if(sss->community_file)

Loading…
Cancel
Save