mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Correct address parsing
Pointed out by: Maxim Sobolev <sobomax@altavista.net>
This commit is contained in:
parent
fdf884ea55
commit
9962fa3956
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58830
@ -113,7 +113,7 @@ ParseAddr(struct ipcp *ipcp, const char *data,
|
||||
strncpy(s, data, len);
|
||||
s[len] = '\0';
|
||||
*paddr = GetIpAddr(s);
|
||||
if (paddr->s_addr == INADDR_ANY || paddr->s_addr == INADDR_NONE) {
|
||||
if (paddr->s_addr == INADDR_NONE) {
|
||||
log_Printf(LogWARN, "ParseAddr: %s: Bad address\n", s);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user