commit | 22f41c9b99ff41a9aa08cd5421c02e876f58702f | [log] [tgz] |
---|---|---|
author | Bodo Möller <bodo@openssl.org> | Mon Apr 03 13:57:56 2006 +0000 |
committer | Bodo Möller <bodo@openssl.org> | Mon Apr 03 13:57:56 2006 +0000 |
tree | 0c891ceb3bb457fa1d68e34934e59392cf374889 | |
parent | a123c552cd86be1a90d317d6f31dd128eec4fb82 [diff] |
check length properly Submitted by: Peter Sylvester
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index d755886..69c0d42 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c
@@ -221,7 +221,7 @@ /* Add TLS extension EllipticCurves to the ClientHello message */ long lenmax; - if ((lenmax = limit - p - 5) < 0) return NULL; + if ((lenmax = limit - p - 6) < 0) return NULL; if (s->tlsext_ellipticcurvelist_length > (unsigned long)lenmax) return NULL; if (s->tlsext_ellipticcurvelist_length > 255) {