projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3167f68
)
Use unsigned loop index to make compilers happy
author
Bodo Möller
<bodo@openssl.org>
Fri, 25 Feb 2000 16:36:07 +0000
(16:36 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 25 Feb 2000 16:36:07 +0000
(16:36 +0000)
ssl/s3_pkt.c
patch
|
blob
|
history
diff --git
a/ssl/s3_pkt.c
b/ssl/s3_pkt.c
index a407c9d741d7672d1e01b5ffa9aa608e3ab231d0..a3d656be407d4aaead90771ae16a17c45a0a917f 100644
(file)
--- 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;
}