projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for raw extensions. This means that you can include the DER encoding
[openssl.git]
/
crypto
/
objects
/
obj_dat.c
diff --git
a/crypto/objects/obj_dat.c
b/crypto/objects/obj_dat.c
index 3df5cdd97b41f843248eefd9c1a7f09fa8bab3f6..563556e1f867a8a0b7301cc2b85ee71ab351b425 100644
(file)
--- a/
crypto/objects/obj_dat.c
+++ b/
crypto/objects/obj_dat.c
@@
-420,7
+420,11
@@
int no_name;
/* Work out size of content octets */
i=a2d_ASN1_OBJECT(NULL,0,s,-1);
- if (i <= 0) return NULL;
+ if (i <= 0) {
+ /* Clear the error */
+ ERR_get_error();
+ return NULL;
+ }
/* Work out total size */
j = ASN1_object_size(0,i,V_ASN1_OBJECT);