summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/src/ssl/t1_lib.c5
-rw-r--r--src/lib/libssl/t1_lib.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libssl/src/ssl/t1_lib.c b/src/lib/libssl/src/ssl/t1_lib.c
index 3412e70d30..5a6c0ddba0 100644
--- a/src/lib/libssl/src/ssl/t1_lib.c
+++ b/src/lib/libssl/src/ssl/t1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_lib.c,v 1.69 2014/12/06 13:21:14 jsing Exp $ */ 1/* $OpenBSD: t1_lib.c,v 1.70 2014/12/06 13:28:56 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1370,7 +1370,8 @@ ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d,
1370 ellipticcurvelist_length += (*(sdata++)); 1370 ellipticcurvelist_length += (*(sdata++));
1371 1371
1372 if (ellipticcurvelist_length != size - 2 || 1372 if (ellipticcurvelist_length != size - 2 ||
1373 ellipticcurvelist_length < 1) { 1373 ellipticcurvelist_length < 1 ||
1374 ellipticcurvelist_length % 2 != 0) {
1374 *al = TLS1_AD_DECODE_ERROR; 1375 *al = TLS1_AD_DECODE_ERROR;
1375 return 0; 1376 return 0;
1376 } 1377 }
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c
index 3412e70d30..5a6c0ddba0 100644
--- a/src/lib/libssl/t1_lib.c
+++ b/src/lib/libssl/t1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_lib.c,v 1.69 2014/12/06 13:21:14 jsing Exp $ */ 1/* $OpenBSD: t1_lib.c,v 1.70 2014/12/06 13:28:56 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1370,7 +1370,8 @@ ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d,
1370 ellipticcurvelist_length += (*(sdata++)); 1370 ellipticcurvelist_length += (*(sdata++));
1371 1371
1372 if (ellipticcurvelist_length != size - 2 || 1372 if (ellipticcurvelist_length != size - 2 ||
1373 ellipticcurvelist_length < 1) { 1373 ellipticcurvelist_length < 1 ||
1374 ellipticcurvelist_length % 2 != 0) {
1374 *al = TLS1_AD_DECODE_ERROR; 1375 *al = TLS1_AD_DECODE_ERROR;
1375 return 0; 1376 return 0;
1376 } 1377 }