diff options
author | Bodo Möller <bodo@openssl.org> | 2001-04-03 13:50:30 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-04-03 13:50:30 +0000 |
commit | 1876cc32ae49de85d99bae62de22534b00939145 (patch) | |
tree | 9aa27e925c58ada50d9af44a78402a770b982892 /ssl/s3_enc.c | |
parent | 4e2a08ddd47ccac15aa8c1a4700cfb552e9d1734 (diff) |
This change should be suitable as a workaround for the Solaris x86
compiler bug reported in <01032110293775.22278@weba3.iname.net>
(the '++seq[i]' condition is evaluated as 256 rather than 0
when the previous value is 255).
Diffstat (limited to 'ssl/s3_enc.c')
-rw-r--r-- | ssl/s3_enc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c index ad367c0e74..9e442a1f1b 100644 --- a/ssl/s3_enc.c +++ b/ssl/s3_enc.c @@ -504,7 +504,10 @@ int ssl3_mac(SSL *ssl, unsigned char *md, int send) EVP_DigestFinal( &md_ctx,md,&md_size); for (i=7; i>=0; i--) - if (++seq[i]) break; + { + ++seq[i]; + if (seq[i] != 0) break; + } return(md_size); } |