Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/ipsec-tools/src/racoon Fix address comparison so...
details: https://anonhg.NetBSD.org/src/rev/4fa0bc8be223
branches: trunk
changeset: 758122:4fa0bc8be223
user: tteras <tteras%NetBSD.org@localhost>
date: Wed Oct 20 10:56:39 2010 +0000
description:
Fix address comparison so we actually close sockets which were bound to
IP-address that got deconfigured.
diffstat:
crypto/dist/ipsec-tools/src/racoon/grabmyaddr.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r bb85efaa879e -r 4fa0bc8be223 crypto/dist/ipsec-tools/src/racoon/grabmyaddr.c
--- a/crypto/dist/ipsec-tools/src/racoon/grabmyaddr.c Wed Oct 20 09:22:45 2010 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/grabmyaddr.c Wed Oct 20 10:56:39 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: grabmyaddr.c,v 1.23 2009/07/03 06:41:46 tteras Exp $ */
+/* $NetBSD: grabmyaddr.c,v 1.24 2010/10/20 10:56:39 tteras Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* Copyright (C) 2008 Timo Teras <timo.teras%iki.fi@localhost>.
@@ -187,8 +187,9 @@
for (my = LIST_FIRST(&opened); my; my = next) {
next = LIST_NEXT(my, chain);
- if (!cmpsaddr((struct sockaddr *) &addr,
- (struct sockaddr *) &my->addr))
+ if (cmpsaddr((struct sockaddr *) addr,
+ (struct sockaddr *) &my->addr)
+ <= CMPSADDR_WOP_MATCH)
myaddr_delete(my);
}
}
Home |
Main Index |
Thread Index |
Old Index