mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
EOF x2
This commit is contained in:
parent
e78ba96f3b
commit
01822cada8
|
@ -1345,10 +1345,8 @@ int net_addr_from_str(NETADDR *addr, const char *string)
|
||||||
str++;
|
str++;
|
||||||
if(parse_uint16(&addr->port, &str))
|
if(parse_uint16(&addr->port, &str))
|
||||||
return -1;
|
return -1;
|
||||||
if(*str != '\0')
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
else
|
if(*str != '\0')
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
addr->type = NETTYPE_IPV4;
|
addr->type = NETTYPE_IPV4;
|
||||||
|
|
Loading…
Reference in a new issue