diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-12-10 09:00:49 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-12-10 09:00:49 +0000 |
commit | 2b28e87e381321e74abe367828d13ffb1e61b5da (patch) | |
tree | 7b485b98f63f654bed0161495e8c6bca5ecc41fe /sbin | |
parent | 00ed45459eefe4f06de302bcc0744c319a0b9396 (diff) |
check msg->isakmp_sa != NULL before the transport gets updated; ok hshoexer
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/isakmpd/message.c | 4 |
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); |