Loading ares/ares_init.c +8 −6 Original line number Diff line number Diff line Loading @@ -858,7 +858,8 @@ static int config_sortlist(struct apattern **sortlist, int *nsort, ipbufpfx[0] = 0; /* Lets see if it is CIDR */ /* First we'll try IPv6 */ if ((bits = ares_inet_net_pton(AF_INET6, ipbufpfx ? ipbufpfx : ipbuf, &pat.addr.addr6, if ((bits = ares_inet_net_pton(AF_INET6, ipbufpfx ? ipbufpfx : ipbuf, &pat.addr.addr6, sizeof(pat.addr.addr6))) > 0) { pat.type = PATTERN_CIDR; Loading Loading @@ -1011,7 +1012,8 @@ static const char *try_option(const char *p, const char *q, const char *opt) } #ifndef WIN32 static int sortlist_alloc(struct apattern **sortlist, int *nsort, struct apattern *pat) static int sortlist_alloc(struct apattern **sortlist, int *nsort, struct apattern *pat) { struct apattern *newsort; newsort = realloc(*sortlist, (*nsort + 1) * sizeof(struct apattern)); Loading Loading
ares/ares_init.c +8 −6 Original line number Diff line number Diff line Loading @@ -858,7 +858,8 @@ static int config_sortlist(struct apattern **sortlist, int *nsort, ipbufpfx[0] = 0; /* Lets see if it is CIDR */ /* First we'll try IPv6 */ if ((bits = ares_inet_net_pton(AF_INET6, ipbufpfx ? ipbufpfx : ipbuf, &pat.addr.addr6, if ((bits = ares_inet_net_pton(AF_INET6, ipbufpfx ? ipbufpfx : ipbuf, &pat.addr.addr6, sizeof(pat.addr.addr6))) > 0) { pat.type = PATTERN_CIDR; Loading Loading @@ -1011,7 +1012,8 @@ static const char *try_option(const char *p, const char *q, const char *opt) } #ifndef WIN32 static int sortlist_alloc(struct apattern **sortlist, int *nsort, struct apattern *pat) static int sortlist_alloc(struct apattern **sortlist, int *nsort, struct apattern *pat) { struct apattern *newsort; newsort = realloc(*sortlist, (*nsort + 1) * sizeof(struct apattern)); Loading