Skip to content

Commit

Permalink
Merge pull request #211 from flaviojs/change-separator-replacement-ip…
Browse files Browse the repository at this point in the history
…v6_parse_cidr

Change the separator replacement in ipv6_parse_cidr.
  • Loading branch information
grossmj authored Mar 30, 2024
2 parents 6cf55c4 + b2d2742 commit 04032c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ int ipv6_parse_cidr(char *token,n_ipv6_addr_t *net_addr,u_int *net_mask)

if ((tmp = strdup(token)) == NULL)
return(-1);

sl = strchr(tmp,'/');
*sl = 0;

tmp[sl - token] = '\0';

/* Parse IP Address */
if (n_ipv6_aton(net_addr,tmp) <= 0) {
Expand Down

0 comments on commit 04032c6

Please sign in to comment.