diff options
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_enc.c | 5 | ||||
-rw-r--r-- | ssl/t1_enc.c | 5 |
2 files changed, 8 insertions, 2 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); } 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"); } |