1
1

* need to check for exact equality, not just that some bits are still set.

This commit was SVN r10761.
Этот коммит содержится в:
Brian Barrett 2006-07-12 16:58:52 +00:00
родитель 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;