summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2018-09-20 11:49:55 +0000
committerjsg <jsg@openbsd.org>2018-09-20 11:49:55 +0000
commiteaab2007efb9d1869917a6ba4527f4d63648dd9f (patch)
tree43aad6a587f1655c99e20fc921e0c3900686eeb8
parentAdjust unittests to the adjustments done to the as_set code. (diff)
downloadwireguard-openbsd-eaab2007efb9d1869917a6ba4527f4d63648dd9f.tar.xz
wireguard-openbsd-eaab2007efb9d1869917a6ba4527f4d63648dd9f.zip
add missing braces implied by indentation
ok millert@ mpi@
-rw-r--r--sbin/isakmpd/ike_phase_1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/isakmpd/ike_phase_1.c b/sbin/isakmpd/ike_phase_1.c
index c89a0f59409..d0638c48cdb 100644
--- a/sbin/isakmpd/ike_phase_1.c
+++ b/sbin/isakmpd/ike_phase_1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike_phase_1.c,v 1.77 2017/11/08 13:33:49 patrick Exp $ */
+/* $OpenBSD: ike_phase_1.c,v 1.78 2018/09/20 11:49:55 jsg Exp $ */
/* $EOM: ike_phase_1.c,v 1.31 2000/12/11 23:47:56 niklas Exp $ */
/*
@@ -1381,7 +1381,7 @@ attribute_unacceptable(u_int16_t type, u_int8_t *value, u_int16_t len,
if (str) {
if (!strcmp(str, "ANY"))
rv = 0;
- else
+ else {
dur = (len == 4) ? decode_32(value) :
decode_16(value);
if ((rv = !conf_match_num(vs->life,
@@ -1391,6 +1391,7 @@ attribute_unacceptable(u_int16_t type, u_int8_t *value, u_int16_t len,
"LIFE_DURATION: got %d, "
" expected %s", dur, str);
}
+ }
} else {
log_print("attribute_unacceptable: "
"section [%s] has no LIFE_DURATION",