This commit is contained in:
Vlad 2021-07-26 01:30:01 +03:00 committed by GitHub
parent e78ba96f3b
commit 01822cada8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1345,10 +1345,8 @@ int net_addr_from_str(NETADDR *addr, const char *string)
str++;
if(parse_uint16(&addr->port, &str))
return -1;
if(*str != '\0')
return -1;
}
else
if(*str != '\0')
return -1;
addr->type = NETTYPE_IPV4;