diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c
index e06659a..d5ae13d 100644
--- a/src/openvpn/ssl.c
+++ b/src/openvpn/ssl.c
@@ -2409,7 +2409,7 @@
 
     free(multi->remote_ciphername);
     multi->remote_ciphername = options_string_extract_option(options, "cipher", NULL);
-    multi->remote_usescomp = strstr(options, ",comp-lzo,");
+    multi->remote_usescomp = (strstr(options, ",comp-lzo,") != NULL);
 
     /* In OCC we send '[null-cipher]' instead 'none' */
     if (multi->remote_ciphername && strcmp(multi->remote_ciphername, "[null-cipher]") == 0)
