summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2004-02-16 20:40:34 +0000
committermarkus <markus@openbsd.org>2004-02-16 20:40:34 +0000
commit15a4fd03bacd10ccb1d0c2b20b21d7f3c1a79e55 (patch)
treef82b054d7d3ae8c13b2047a0e6b50003167b3d90
parentmake -b and -c work with large offsets; tweak from millert@ (diff)
downloadwireguard-openbsd-15a4fd03bacd10ccb1d0c2b20b21d7f3c1a79e55.tar.xz
wireguard-openbsd-15a4fd03bacd10ccb1d0c2b20b21d7f3c1a79e55.zip
check for isakmp_sa->transport != NULL; noticed by bluhm at genua.de ok hshoexer@
-rw-r--r--sbin/isakmpd/exchange.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/exchange.c b/sbin/isakmpd/exchange.c
index 53e4650af46..aee914169ca 100644
--- a/sbin/isakmpd/exchange.c
+++ b/sbin/isakmpd/exchange.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exchange.c,v 1.90 2004/02/05 11:01:54 hshoexer Exp $ */
+/* $OpenBSD: exchange.c,v 1.91 2004/02/16 20:40:34 markus Exp $ */
/* $EOM: exchange.c,v 1.143 2000/12/04 00:02:25 angelos Exp $ */
/*
@@ -1518,7 +1518,7 @@ exchange_finalize (struct message *msg)
else
id_doi = "<no doi>";
- if (msg->isakmp_sa)
+ if (msg->isakmp_sa && msg->isakmp_sa->transport)
id_trp = msg->isakmp_sa->transport->vtbl->decode_ids
(msg->isakmp_sa->transport);
else