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:
Matt Braithwaite 2015-04-20 18:07:32 -07:00 committed by Adam Langley
parent 83f182c6c5
commit 9626f26320

View File

@ -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;
}
}