From 3eb742498edba38d42773818e949331b9664ee80 Mon Sep 17 00:00:00 2001 From: me_desk Date: Sun, 30 Dec 2012 20:30:53 +0000 Subject: check declared AND real node address from sockaddr_in struct git-svn-id: svn://localhost/project_picapica/trunk@219 fb96df88-216d-11de-830c-f3023f12d8ac --- PICA_node.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'PICA_node.c') diff --git a/PICA_node.c b/PICA_node.c index 7c8e520..26857fb 100755 --- a/PICA_node.c +++ b/PICA_node.c @@ -2777,11 +2777,10 @@ while(nap) //IPv6 } } - else - { - if (0 == strncmp(nap->addr, inet_ntoa(nl->addr.sin_addr),16) && nap->port == ntohs(nl->addr.sin_port)) - skip = 1; - } + + if (0 == strncmp(nap->addr, inet_ntoa(nl->addr.sin_addr),16) && nap->port == ntohs(nl->addr.sin_port)) + skip = 1; + nl = nl->next; } -- cgit v1.2.1