* need to check for exact equality, not just that some bits are still set.
This commit was SVN r10761.
Этот коммит содержится в:
родитель
ca5bd805db
Коммит
6ce2b2f989
@ -642,7 +642,7 @@ opal_ifislocalhost(struct sockaddr *addr)
|
||||
{
|
||||
struct sockaddr_in *inaddr = (struct sockaddr_in*) addr;
|
||||
/* if it's in the 127. domain, it shouldn't be routed */
|
||||
if (0x74000000 & htonl(inaddr->sin_addr.s_addr)) {
|
||||
if (0x74000000 == (0x74000000 & htonl(inaddr->sin_addr.s_addr))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user