From 817742f5aa5e3066a8553470d88a40ae5de588ca Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 16 Mar 2014 10:59:17 +0200 Subject: [PATCH] TLS testing: Fix test_flags check for ApplData report Signed-off-by: Jouni Malinen --- src/tls/tlsv1_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls/tlsv1_server.c b/src/tls/tlsv1_server.c index 4aeccf6a9..b1d233ba4 100644 --- a/src/tls/tlsv1_server.c +++ b/src/tls/tlsv1_server.c @@ -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) {