]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
TLS testing: Fix test_flags check for ApplData report
authorJouni Malinen <j@w1.fi>
Sun, 16 Mar 2014 08:59:17 +0000 (10:59 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 16 Mar 2014 08:59:17 +0000 (10:59 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
src/tls/tlsv1_server.c

index 4aeccf6a97dcdbeeaca652e3afe5c03e0ccf1ef7..b1d233ba4b9881793133305f3a7d40f42e05dc22 100644 (file)
@@ -316,7 +316,7 @@ int tlsv1_server_decrypt(struct tlsv1_server *conn,
                }
 
 #ifdef CONFIG_TESTING_OPTIONS
-               if ((conn->test_flags &&
+               if ((conn->test_flags &
                     (TLS_BREAK_VERIFY_DATA | TLS_BREAK_SRV_KEY_X_HASH |
                      TLS_BREAK_SRV_KEY_X_SIGNATURE)) &&
                    !conn->test_failure_reported) {