diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-02-10 20:08:49 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-02-10 20:08:49 +0000 |
commit | c489ea7d01c24202515c4147080c70258c75cbcf (patch) | |
tree | 826a51d62ec6c8387dc5b4e80c814385a075e329 /ssl/s3_lib.c | |
parent | 26c6857a591e5a98a934569fdeabc139d24545c9 (diff) |
PR: 2704
Submitted by: Peter Sylvester <peter.sylvester@edelweb.fr>
Fix srp extension.
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 75d716e88f..db75479c38 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3589,7 +3589,7 @@ long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) ctx->srp_ctx.login = NULL; if (parg == NULL) break; - if (strlen((char *)parg) > 254) + if (strlen((const char *)parg) > 255 || strlen((const char *)parg) < 1) { SSLerr(SSL_F_SSL3_CTX_CTRL, SSL_R_INVALID_SRP_USERNAME); return 0; |