diff options
author | Bodo Möller <bodo@openssl.org> | 2000-02-25 15:32:36 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-02-25 15:32:36 +0000 |
commit | b08b07b8ae6c216390727ee6b39afc79c6589973 (patch) | |
tree | e5f9576092be292c42c9516fb43e5668d89a3956 /ssl/s3_pkt.c | |
parent | 4621a000630afc0b9522576c6ffb0f3975ed16ff (diff) | |
download | openssl-new-b08b07b8ae6c216390727ee6b39afc79c6589973.tar.gz |
The previous revision should have generated _more_ warnings, not less ...
The return value of handshake_func is signed, not unsigned.
Diffstat (limited to 'ssl/s3_pkt.c')
-rw-r--r-- | ssl/s3_pkt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 6d9dad9040..a407c9d741 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -706,8 +706,8 @@ static int ssl3_write_pending(SSL *s, int type, const unsigned char *buf, */ int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len) { - int al,j,ret; - unsigned int i,n; + int al,i,j,ret; + unsigned int n; SSL3_RECORD *rr; void (*cb)()=NULL; @@ -890,9 +890,9 @@ start: ssl3_renegotiate(s); if (ssl3_renegotiate_check(s)) { - n=s->handshake_func(s); - if (n < 0) return(n); - if (n == 0) + i=s->handshake_func(s); + if (i < 0) return(i); + if (i == 0) { SSLerr(SSL_F_SSL3_READ_BYTES,SSL_R_SSL_HANDSHAKE_FAILURE); return(-1); |