summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.c b/init.c
index 930d220..8123362 100644
--- a/init.c
+++ b/init.c
@@ -1696,7 +1696,11 @@ do_option_warnings (struct context *c)
{
if (!o->persist_tun)
msg (M_WARN, "WARNING: you are using user/group/chroot without persist-tun -- this may cause restarts to fail");
- if (!o->persist_key && !o->pkcs11_id)
+ if (!o->persist_key
+#ifdef ENABLE_PKCS11
+ && !o->pkcs11_id
+#endif
+ )
msg (M_WARN, "WARNING: you are using user/group/chroot without persist-key -- this may cause restarts to fail");
}