diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-15 09:15:55 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-15 09:15:55 +0000 |
commit | 0a5942093e06f60f0fa683505ee3693a4fdea070 (patch) | |
tree | 1617f194e89f8692fb851aad24510d27b89e19b0 /ssl | |
parent | d78254aa2816f6c80220ada64f2231879003278b (diff) | |
download | openssl-0a5942093e06f60f0fa683505ee3693a4fdea070.tar.gz |
We need to read one more byte of the REQUEST-CERTIFICATE message.
PR: 300
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s2_clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c index 681bfad8f7..da783230a5 100644 --- a/ssl/s2_clnt.c +++ b/ssl/s2_clnt.c @@ -770,8 +770,8 @@ static int client_certificate(SSL *s) if (s->state == SSL2_ST_SEND_CLIENT_CERTIFICATE_A) { i=ssl2_read(s,(char *)&(buf[s->init_num]), - SSL2_MAX_CERT_CHALLENGE_LENGTH+1-s->init_num); - if (i<(SSL2_MIN_CERT_CHALLENGE_LENGTH+1-s->init_num)) + SSL2_MAX_CERT_CHALLENGE_LENGTH+2-s->init_num); + if (i<(SSL2_MIN_CERT_CHALLENGE_LENGTH+2-s->init_num)) return(ssl2_part_read(s,SSL_F_CLIENT_CERTIFICATE,i)); s->init_num += i; if (s->msg_callback) |