diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_int.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_int.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_int.c b/src/lib/libcrypto/asn1/a_int.c index 015d02ccdb..1a84772231 100644 --- a/src/lib/libcrypto/asn1/a_int.c +++ b/src/lib/libcrypto/asn1/a_int.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_int.c,v 1.22 2014/07/10 11:25:13 tedu Exp $ */ | 1 | /* $OpenBSD: a_int.c,v 1.23 2014/07/10 13:58:22 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 | * |
@@ -57,6 +57,8 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <string.h> | ||
61 | |||
60 | #include "cryptlib.h" | 62 | #include "cryptlib.h" |
61 | #include <openssl/asn1.h> | 63 | #include <openssl/asn1.h> |
62 | #include <openssl/bn.h> | 64 | #include <openssl/bn.h> |
@@ -200,7 +202,7 @@ c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp, long len) | |||
200 | } else | 202 | } else |
201 | ret = (*a); | 203 | ret = (*a); |
202 | 204 | ||
203 | p= *pp; | 205 | p = *pp; |
204 | pend = p + len; | 206 | pend = p + len; |
205 | 207 | ||
206 | /* We must malloc stuff, even for 0 bytes otherwise it | 208 | /* We must malloc stuff, even for 0 bytes otherwise it |