summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-12-10 09:00:49 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-12-10 09:00:49 +0000
commit2b28e87e381321e74abe367828d13ffb1e61b5da (patch)
tree7b485b98f63f654bed0161495e8c6bca5ecc41fe /sbin
parent00ed45459eefe4f06de302bcc0744c319a0b9396 (diff)
check msg->isakmp_sa != NULL before the transport gets updated; ok hshoexer
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/message.c b/sbin/isakmpd/message.c
index bc86f0f1acc..204565c2c86 100644
--- a/sbin/isakmpd/message.c
+++ b/sbin/isakmpd/message.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: message.c,v 1.90 2004/12/08 16:05:37 markus Exp $ */
+/* $OpenBSD: message.c,v 1.91 2004/12/10 09:00:48 markus Exp $ */
/* $EOM: message.c,v 1.156 2000/10/10 12:36:39 provos Exp $ */
/*
@@ -1459,7 +1459,7 @@ message_recv(struct message *msg)
* Update the isakmp transport, but only in phase 1,
* since phase 2 SAs might use this transport
*/
- if (msg->exchange->phase == 1) {
+ if (msg->isakmp_sa && msg->exchange->phase == 1) {
t = msg->isakmp_sa->transport;
msg->isakmp_sa->transport = msg->transport;
transport_reference(msg->transport);