From 8f3234b2c8efc4aea4e49e0b7e03b29131c99662 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Wed, 16 Jul 2014 13:09:22 -0400 Subject: [PATCH] Fix another flipped condition. This one in code that's not compiled though. Change-Id: I8fb6c2df4669a70223889d31b233b577cf3e6b22 Reviewed-on: https://boringssl-review.googlesource.com/1211 Reviewed-by: Adam Langley --- ssl/t1_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 1666df1b0..e294fb22a 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -2150,7 +2150,7 @@ static int ssl_scan_clienthello_tlsext(SSL *s, CBS *cbs, int *out_alert) /* Extension consists of a responder_id_list and * request_extensions. */ if (!CBS_get_u16_length_prefixed(&extension, &responder_id_list) || - CBS_get_u16_length_prefixed(&extension, &request_extensions) || + !CBS_get_u16_length_prefixed(&extension, &request_extensions) || CBS_len(&extension) != 0) { *out_alert = SSL_AD_DECODE_ERROR;