Fix logic error that was breaking OBJ_create.
Change-Id: Iea367f6dea0710da17097fff2fc2e26f6f73befd Reviewed-on: https://boringssl-review.googlesource.com/4471 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
83f182c6c5
commit
9626f26320
@ -135,7 +135,7 @@ ASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *o) {
|
||||
|
||||
if (o->sn != NULL) {
|
||||
sn = OPENSSL_strdup(o->sn);
|
||||
if (sn) {
|
||||
if (sn == NULL) {
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user