diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index d824cbad..d9d492b2 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -4138,7 +4138,7 @@ options_warning_safe_scan2(const int msglevel,
     if (strprefix(p1, "key-method ")
         || strprefix(p1, "keydir ")
         || strprefix(p1, "proto ")
-        || strprefix(p1, "tls-auth ")
+        || streq(p1, "tls-auth")
         || strprefix(p1, "tun-ipv6")
         || strprefix(p1, "cipher "))
     {
