summaryrefslogtreecommitdiffstats
path: root/source/l/mozilla-nss/CVE-2022-3479.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/mozilla-nss/CVE-2022-3479.patch')
-rw-r--r--source/l/mozilla-nss/CVE-2022-3479.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/source/l/mozilla-nss/CVE-2022-3479.patch b/source/l/mozilla-nss/CVE-2022-3479.patch
new file mode 100644
index 000000000..5f80fdc09
--- /dev/null
+++ b/source/l/mozilla-nss/CVE-2022-3479.patch
@@ -0,0 +1,23 @@
+diff --git a/lib/ssl/authcert.c b/lib/ssl/authcert.c
+--- a/lib/ssl/authcert.c
++++ b/lib/ssl/authcert.c
+@@ -212,17 +212,17 @@ NSS_GetClientAuthData(void *arg,
+ pw_arg);
+ } else {
+ int nnames = 0;
+ char **names = ssl_DistNamesToStrings(caNames, &nnames);
+ rv = CERT_FilterCertListByCANames(certList, nnames, names,
+ certUsageSSLClient);
+ ssl_FreeDistNamesStrings(names, nnames);
+ }
+- if ((rv != SECSuccess) || CERT_LIST_EMPTY(certList)) {
++ if ((rv != SECSuccess) || (certList && CERT_LIST_EMPTY(certList))) {
+ CERT_DestroyCertList(certList);
+ certList = NULL;
+ }
+ }
+ if (certList == NULL) {
+ /* no user certs meeting the nickname/usage requirements found */
+ return SECFailure;
+ }
+