From 6ce2b2f989563ebfc5927cfb0f727c6bfd36bd72 Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Wed, 12 Jul 2006 16:58:52 +0000 Subject: [PATCH] * need to check for exact equality, not just that some bits are still set. This commit was SVN r10761. --- opal/util/if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opal/util/if.c b/opal/util/if.c index 3b12dcd875..5ca2390183 100644 --- a/opal/util/if.c +++ b/opal/util/if.c @@ -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;