summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-06-02 19:49:24 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-06-02 19:49:24 +0000
commit204533b59784a2ed890ea3c6aad96531b3989704 (patch)
tree79f261d042435015f202bc69f08849a71bedfc7f /sbin/isakmpd
parent0b21e1a6cf47c7fb9d22970a1e0d23ed9739eab2 (diff)
unbreak port floating, noticed by sean at obstacle9 dot com
ok cloder
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r--sbin/isakmpd/nat_traversal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/nat_traversal.c b/sbin/isakmpd/nat_traversal.c
index a94c1b8e6d6..583e9d890c5 100644
--- a/sbin/isakmpd/nat_traversal.c
+++ b/sbin/isakmpd/nat_traversal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nat_traversal.c,v 1.14 2005/05/18 20:04:51 hshoexer Exp $ */
+/* $OpenBSD: nat_traversal.c,v 1.15 2005/06/02 19:49:23 hshoexer Exp $ */
/*
* Copyright (c) 2004 Håkan Olsson. All rights reserved.
@@ -327,8 +327,8 @@ nat_t_match_nat_d_payload(struct message *msg, struct sockaddr *sa)
* If there are no NAT-D payloads in the message, return "found"
* as this will avoid NAT-T (see nat_t_exchange_check_nat_d()).
*/
- p = payload_first(msg, ISAKMP_PAYLOAD_NAT_D_DRAFT);
- if (!p)
+ if ((p = payload_first(msg, ISAKMP_PAYLOAD_NAT_D_DRAFT)) == NULL &&
+ (p = payload_first(msg, ISAKMP_PAYLOAD_NAT_D)) == NULL)
return 1;
hbuf = nat_t_generate_nat_d_hash(msg, sa, &hbuflen);