summaryrefslogtreecommitdiffstats
path: root/crypto/objects
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-04-07 22:53:35 +0000
committerNils Larsch <nils@openssl.org>2005-04-07 22:53:35 +0000
commitf763e0b5ae74c67795d096c9029b5c61e891e68a (patch)
treeefcfbda8d8f60aa958c080a184b469e01e9e8713 /crypto/objects
parenteb3eab20a86e3d06e949880e2a036a026dd1da91 (diff)
make sure error queue is totally emptied
PR: 359
Diffstat (limited to 'crypto/objects')
-rw-r--r--crypto/objects/obj_dat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c
index 700a0b6d3c..e56f3dea09 100644
--- a/crypto/objects/obj_dat.c
+++ b/crypto/objects/obj_dat.c
@@ -414,7 +414,7 @@ ASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name)
i=a2d_ASN1_OBJECT(NULL,0,s,-1);
if (i <= 0) {
/* Clear the error */
- ERR_get_error();
+ ERR_clear_error();
return NULL;
}
/* Work out total size */