summaryrefslogtreecommitdiffstats
path: root/src/crypto/x509/x509_v3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/x509/x509_v3.c')
-rw-r--r--src/crypto/x509/x509_v3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/x509/x509_v3.c b/src/crypto/x509/x509_v3.c
index 95fe729..0fc9a9a 100644
--- a/src/crypto/x509/x509_v3.c
+++ b/src/crypto/x509/x509_v3.c
@@ -231,7 +231,7 @@ int X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj)
return(0);
ASN1_OBJECT_free(ex->object);
ex->object=OBJ_dup(obj);
- return(1);
+ return ex->object != NULL;
}
int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit)