summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_bitstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/a_bitstr.c')
-rw-r--r--src/lib/libcrypto/asn1/a_bitstr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c
index c0259ad815..c847b471d6 100644
--- a/src/lib/libcrypto/asn1/a_bitstr.c
+++ b/src/lib/libcrypto/asn1/a_bitstr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_bitstr.c,v 1.22 2015/07/29 14:58:34 jsing Exp $ */ 1/* $OpenBSD: a_bitstr.c,v 1.23 2015/09/29 13:54:40 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 *
@@ -140,7 +140,7 @@ c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, const unsigned char **pp, long len)
140 } 140 }
141 141
142 if ((a == NULL) || ((*a) == NULL)) { 142 if ((a == NULL) || ((*a) == NULL)) {
143 if ((ret = M_ASN1_BIT_STRING_new()) == NULL) 143 if ((ret = ASN1_BIT_STRING_new()) == NULL)
144 return (NULL); 144 return (NULL);
145 } else 145 } else
146 ret = (*a); 146 ret = (*a);
@@ -178,7 +178,7 @@ c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, const unsigned char **pp, long len)
178err: 178err:
179 ASN1err(ASN1_F_C2I_ASN1_BIT_STRING, i); 179 ASN1err(ASN1_F_C2I_ASN1_BIT_STRING, i);
180 if ((ret != NULL) && ((a == NULL) || (*a != ret))) 180 if ((ret != NULL) && ((a == NULL) || (*a != ret)))
181 M_ASN1_BIT_STRING_free(ret); 181 ASN1_BIT_STRING_free(ret);
182 return (NULL); 182 return (NULL);
183} 183}
184 184