summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-11-16 18:35:33 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-11-16 18:35:33 +0000
commit69f88550d9c1379a08a429df1f899c22954a7988 (patch)
tree1390b5d728e4dff9145cad94ed0b01168cece1fe
parentc1776437684b22a2243da5765454c0448c4ae189 (diff)
Avoid printing a NULL string. ok hshoexer
-rw-r--r--sbin/isakmpd/exchange.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/isakmpd/exchange.c b/sbin/isakmpd/exchange.c
index fa03cbc6507..d90cd393418 100644
--- a/sbin/isakmpd/exchange.c
+++ b/sbin/isakmpd/exchange.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exchange.c,v 1.124 2005/10/26 20:10:49 markus Exp $ */
+/* $OpenBSD: exchange.c,v 1.125 2005/11/16 18:35:32 cloder Exp $ */
/* $EOM: exchange.c,v 1.143 2000/12/04 00:02:25 angelos Exp $ */
/*
@@ -1015,8 +1015,10 @@ exchange_setup_p1(struct message *msg, u_int32_t doi)
/* Figure out the DOI. */
str = conf_get_str(policy, "DOI");
- if (!str || strcasecmp(str, "IPSEC") == 0)
+ if (!str || strcasecmp(str, "IPSEC") == 0) {
want_doi = IPSEC_DOI_IPSEC;
+ str = "IPSEC";
+ }
else if (strcasecmp(str, "ISAKMP") == 0)
want_doi = ISAKMP_DOI_ISAKMP;
else {