Permalink
Browse files

Added check for missing argument (-l)

  • Loading branch information...
lucaderi committed Dec 4, 2018
1 parent e07ae72 commit 55d5392cd2d6b37859eb3e0e195c28c4ad60fef6
Showing with 1 addition and 1 deletion.
  1. +1 −1 edge.c
2 edge.c
@@ -269,7 +269,7 @@ static int setOption(int optkey, char *optargument, edge_conf_t *ec, n2n_edge_t
}
case 'l': /* supernode-list */
{
if(optargument) {
if(eee->sn_num < N2N_EDGE_NUM_SUPERNODES) {
strncpy((eee->sn_ip_array[eee->sn_num]), optargument, N2N_EDGE_SN_HOST_SIZE);
traceEvent(TRACE_NORMAL, "Adding supernode[%u] = %s\n", (unsigned int)eee->sn_num, (eee->sn_ip_array[eee->sn_num]));

0 comments on commit 55d5392

Please sign in to comment.