summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-09-30 17:04:10 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-09-30 17:04:10 +0000
commite6df0276f19a838a7047a5da99979a94d36a3423 (patch)
tree83b3a03b1a8439c94a23cb67008b11dda55d6ba1 /lib
parente5a16f2f2193d735b7456670bb3892fe2a0217ca (diff)
Remove unnecessary type assignments - M_ASN1_INTEGER_new() already sets
the type to V_ASN1_INTEGER. ok doug@
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/asn1/a_int.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libcrypto/asn1/a_int.c b/lib/libcrypto/asn1/a_int.c
index 6a378c08849..cbe68ec6d8c 100644
--- a/lib/libcrypto/asn1/a_int.c
+++ b/lib/libcrypto/asn1/a_int.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_int.c,v 1.28 2015/07/29 14:58:34 jsing Exp $ */
+/* $OpenBSD: a_int.c,v 1.29 2015/09/30 17:04:09 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -198,7 +198,6 @@ c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp, long len)
if ((a == NULL) || ((*a) == NULL)) {
if ((ret = M_ASN1_INTEGER_new()) == NULL)
return (NULL);
- ret->type = V_ASN1_INTEGER;
} else
ret = (*a);
@@ -292,7 +291,6 @@ d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp, long length)
if ((a == NULL) || ((*a) == NULL)) {
if ((ret = M_ASN1_INTEGER_new()) == NULL)
return (NULL);
- ret->type = V_ASN1_INTEGER;
} else
ret = (*a);