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/t1_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/t1_enc.c')
-rw-r--r-- | ssl/t1_enc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 26496d709d..3077e9b9b9 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -643,7 +643,10 @@ printf("rec="); #endif for (i=7; i>=0; i--) - if (++seq[i]) break; + { + ++seq[i]; + if (seq[i] != 0) break; + } #ifdef TLS_DEBUG {unsigned int z; for (z=0; z<md_size; z++) printf("%02X ",md[z]); printf("\n"); } |