Oops should check zero_pos >= 0.
This commit is contained in:
parent
1d4e879106
commit
9d44cd1642
@ -739,7 +739,7 @@ static int ipv6_from_asc(unsigned char *v6, const char *in)
|
|||||||
|
|
||||||
/* Format result */
|
/* Format result */
|
||||||
|
|
||||||
if (v6stat.zero_pos > 0)
|
if (v6stat.zero_pos >= 0)
|
||||||
{
|
{
|
||||||
/* Copy initial part */
|
/* Copy initial part */
|
||||||
memcpy(v6, v6stat.tmp, v6stat.zero_pos);
|
memcpy(v6, v6stat.tmp, v6stat.zero_pos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user