Skip to content

Commit

Permalink
Bug 1670835 - Fixup for 6f79a7695812, add missing return value check.…
Browse files Browse the repository at this point in the history
… r=rrelyea

Differential Revision: https://phabricator.services.mozilla.com/D95221

--HG--
extra : moz-landing-system : lando
  • Loading branch information
Kevin Jacobs committed Oct 30, 2020
1 parent b0b7f9e commit aa23578
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pk11wrap/pk11pars.c
Expand Up @@ -861,7 +861,10 @@ secmod_parseCryptoPolicy(const char *policyConfig, PRBool printPolicyFeedback)
/* don't overwrite other (future) lock flags */
rv = NSS_OptionGet(NSS_DEFAULT_LOCKS, &locks);
if (rv == SECSuccess) {
NSS_OptionSet(NSS_DEFAULT_LOCKS, locks | NSS_DEFAULT_SSL_LOCK);
rv = NSS_OptionSet(NSS_DEFAULT_LOCKS, locks | NSS_DEFAULT_SSL_LOCK);
}
if (rv != SECSuccess) {
return rv;
}
}
if (NSSUTIL_ArgHasFlag("flags", "policy-lock", policyConfig)) {
Expand Down

0 comments on commit aa23578

Please sign in to comment.