commit | 7063b6d0622bf5ff368059ede131df85d27a49e3 | [log] [tgz] |
---|---|---|
author | Piotr Sikora <piotrsikora@google.com> | Thu Oct 29 02:47:40 2015 -0700 |
committer | Adam Langley <agl@google.com> | Thu Oct 29 13:19:53 2015 +0000 |
tree | f566ceb19360827d3bf10ad029474b17c3839ee6 | |
parent | 96b9f3b68ce58613b39019618104d273d90cf888 [diff] |
Fix assert in SSL_set_shutdown. Added in https://boringssl-review.googlesource.com/#/c/6312/. Change-Id: I95f0c8d3a119513c50d1d62a78443c6445507bd4 Signed-off-by: Piotr Sikora <piotrsikora@google.com> Reviewed-on: https://boringssl-review.googlesource.com/6395 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 3549314..5fc2f66 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c
@@ -2000,7 +2000,7 @@ void SSL_set_shutdown(SSL *ssl, int mode) { /* It is an error to clear any bits that have already been set. (We can't try * to get a second close_notify or send two.) */ - assert((ssl->shutdown & mode) != ssl->shutdown); + assert((ssl->shutdown & mode) == ssl->shutdown); ssl->shutdown |= mode; }