projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c04e56
)
Check error code from a2d_ASN1_OBJECT().
author
Richard Levitte
<levitte@openssl.org>
Thu, 11 Apr 2002 22:14:51 +0000
(22:14 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 11 Apr 2002 22:14:51 +0000
(22:14 +0000)
crypto/objects/obj_dat.c
patch
|
blob
|
history
diff --git
a/crypto/objects/obj_dat.c
b/crypto/objects/obj_dat.c
index 4b1bb9583af3d6c34cb550552c0648d17671e57b..4d82378b9db1cc091556c1e4f3c47a0f03e0bb9c 100644
(file)
--- a/
crypto/objects/obj_dat.c
+++ b/
crypto/objects/obj_dat.c
@@
-645,6
+645,8
@@
int OBJ_create(char *oid, char *sn, char *ln)
return(0);
}
i=a2d_ASN1_OBJECT(buf,i,oid,-1);
+ if (i == 0)
+ goto err;
op=(ASN1_OBJECT *)ASN1_OBJECT_create(OBJ_new_nid(1),buf,i,sn,ln);
if (op == NULL)
goto err;