From: Michael R Sweet Date: Wed, 6 Apr 2022 22:25:04 +0000 (-0400) Subject: Fix OpenSSL API usage bug. X-Git-Tag: v2.4.2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4e1e95b1480cb4b65f2bf192321927105b15351;p=thirdparty%2Fcups.git Fix OpenSSL API usage bug. --- diff --git a/cups/tls-openssl.c b/cups/tls-openssl.c index 6029b9e3d8..c3e57742e8 100644 --- a/cups/tls-openssl.c +++ b/cups/tls-openssl.c @@ -1583,7 +1583,7 @@ http_x509_add_san(X509 *cert, // I - Certificate return; ASN1_OCTET_STRING_set(san_asn1, (unsigned char *)dns_name, strlen(dns_name)); - if (!X509_EXTENSION_create_by_NID(&san_ext, NID_subject_alt_name, 0, san_asn1)) + if ((san_ext = X509_EXTENSION_create_by_NID(NULL, NID_subject_alt_name, 0, san_asn1)) == NULL) { ASN1_OCTET_STRING_free(san_asn1); return;