summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/t1_enc.c')
-rw-r--r--src/lib/libssl/t1_enc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c
index 1c96abb378..5d95419e7e 100644
--- a/src/lib/libssl/t1_enc.c
+++ b/src/lib/libssl/t1_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_enc.c,v 1.83 2015/09/11 18:08:21 jsing Exp $ */ 1/* $OpenBSD: t1_enc.c,v 1.84 2016/03/06 14:52:15 beck Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -936,14 +936,16 @@ tls1_enc(SSL *s, int send)
936 EVP_CIPHER_mode(enc) == EVP_CIPH_CBC_MODE) 936 EVP_CIPHER_mode(enc) == EVP_CIPH_CBC_MODE)
937 ivlen = EVP_CIPHER_iv_length(enc); 937 ivlen = EVP_CIPHER_iv_length(enc);
938 if (ivlen > 1) { 938 if (ivlen > 1) {
939 if (rec->data != rec->input) 939 if (rec->data != rec->input) {
940#ifdef DEBUG
940 /* we can't write into the input stream: 941 /* we can't write into the input stream:
941 * Can this ever happen?? (steve) 942 * Can this ever happen?? (steve)
942 */ 943 */
943 fprintf(stderr, 944 fprintf(stderr,
944 "%s:%d: rec->data != rec->input\n", 945 "%s:%d: rec->data != rec->input\n",
945 __FILE__, __LINE__); 946 __FILE__, __LINE__);
946 else 947#endif
948 } else
947 arc4random_buf(rec->input, ivlen); 949 arc4random_buf(rec->input, ivlen);
948 } 950 }
949 } 951 }