forked from Mirrors/sngrep
Call Flow: fixed a crash checking local IP addresses. #89
This commit is contained in:
parent
7c86359922
commit
50e325c230
|
@ -1149,7 +1149,7 @@ lookup_hostname(const char *address)
|
|||
int
|
||||
is_local_address_str(const char *address)
|
||||
{
|
||||
char straddress[ADDRESSLEN], *end;
|
||||
char straddress[ADDRESSPORTLEN], *end;
|
||||
strcpy(straddress, address);
|
||||
// If address comes with port, remove it
|
||||
if ((end = strchr(straddress, ':')))
|
||||
|
|
Loading…
Reference in New Issue