From: tb Date: Fri, 12 Jul 2024 09:33:05 +0000 (+0000) Subject: Lose a few extra lines in X509_EXTENSION_set_object() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e29922217821cbf6050ef1c868f35ea2fd8be73d;p=openbsd Lose a few extra lines in X509_EXTENSION_set_object() ok jsing --- diff --git a/lib/libcrypto/x509/x509_v3.c b/lib/libcrypto/x509/x509_v3.c index 99d26f39fb7..5ae8fabf469 100644 --- a/lib/libcrypto/x509/x509_v3.c +++ b/lib/libcrypto/x509/x509_v3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_v3.c,v 1.36 2024/07/12 09:31:28 tb Exp $ */ +/* $OpenBSD: x509_v3.c,v 1.37 2024/07/12 09:33:05 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -239,9 +239,7 @@ X509_EXTENSION_set_object(X509_EXTENSION *ext, const ASN1_OBJECT *obj) return 0; ASN1_OBJECT_free(ext->object); - ext->object = OBJ_dup(obj); - - return ext->object != NULL; + return (ext->object = OBJ_dup(obj)) != NULL; } LCRYPTO_ALIAS(X509_EXTENSION_set_object);