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 myaddr_getsport() to ...
details: https://anonhg.NetBSD.org/src/rev/c92e2d5a0325
branches: trunk
changeset: 772387:c92e2d5a0325
user: tteras <tteras%NetBSD.org@localhost>
date: Sun Jan 01 15:54:51 2012 +0000
description:
Fix myaddr_getsport() to return -1 if no suitable address is found. This is
used in pfkey.c:pk_recvacquire() to check if IKE negotiation should be
started or not.
diffstat:
crypto/dist/ipsec-tools/src/racoon/grabmyaddr.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0e2f71cca84c -r c92e2d5a0325 crypto/dist/ipsec-tools/src/racoon/grabmyaddr.c
--- a/crypto/dist/ipsec-tools/src/racoon/grabmyaddr.c Sun Jan 01 15:44:06 2012 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/grabmyaddr.c Sun Jan 01 15:54:51 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: grabmyaddr.c,v 1.28 2011/03/14 17:18:12 tteras Exp $ */
+/* $NetBSD: grabmyaddr.c,v 1.29 2012/01/01 15:54:51 tteras Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* Copyright (C) 2008 Timo Teras <timo.teras%iki.fi@localhost>.
@@ -280,7 +280,7 @@
return extract_port((struct sockaddr *) &my->addr);
}
- return PORT_ISAKMP;
+ return -1;
}
void
Home |
Main Index |
Thread Index |
Old Index