diff options
author | Bodo Möller <bodo@openssl.org> | 2000-02-25 16:36:07 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-02-25 16:36:07 +0000 |
commit | 87a025cbb44d976b6f9e6ee7ea09d8ade450bf08 (patch) | |
tree | cbbc896c4178a1c5742973eef3c2d7df04e5e4ec /ssl/s3_pkt.c | |
parent | 3167f68faf4cd8f2a29b48785dc8e59ba0a2d25c (diff) |
Use unsigned loop index to make compilers happy
Diffstat (limited to 'ssl/s3_pkt.c')
-rw-r--r-- | ssl/s3_pkt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index a407c9d741..a3d656be40 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -726,6 +726,7 @@ int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len) { unsigned char *src = s->s3->handshake_fragment; unsigned char *dst = buf; + unsigned int j; n = 0; while ((len > 0) && (s->s3->handshake_fragment_len > 0)) @@ -735,8 +736,8 @@ int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len) n++; } /* move any remaining fragment bytes: */ - for (i = 0; i < s->s3->handshake_fragment_len; i++) - s->s3->handshake_fragment[i] = *src++; + for (j = 0; j < s->s3->handshake_fragment_len; j++) + s->s3->handshake_fragment[j] = *src++; return n; } |