summaryrefslogtreecommitdiff
path: root/lib/handshake.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-08-09 16:05:47 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-08-13 21:50:32 +0200
commit69dd0f7551349975683f4363b7d19d38e223a4bf (patch)
tree32ac09560be152a88d0188f3e93716aa788c4f02 /lib/handshake.c
parentbc2fca13cf7682e6d6ce7ef6c54245c0f50b5ffb (diff)
downloadgnutls-69dd0f7551349975683f4363b7d19d38e223a4bf.tar.gz
_gnutls_send_change_cipher_spec: removed unnecessary test
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/handshake.c')
-rw-r--r--lib/handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handshake.c b/lib/handshake.c
index 99967a2ffd..ebea926aa5 100644
--- a/lib/handshake.c
+++ b/lib/handshake.c
@@ -3070,7 +3070,7 @@ ssize_t _gnutls_send_change_cipher_spec(gnutls_session_t session, int again)
/* under TLS 1.3, CCS may be immediately followed by
* receiving ClientHello thus cannot be cached */
- if (vers && vers->tls13_sem) {
+ if (vers->tls13_sem) {
ret = _gnutls_handshake_io_write_flush(session);
if (ret < 0)
return gnutls_assert_val(ret);