diff options
author | Marcus Burghardt <mburghardt@mozilla.com> | 2019-08-15 23:05:36 +0000 |
---|---|---|
committer | Marcus Burghardt <mburghardt@mozilla.com> | 2019-08-15 23:05:36 +0000 |
commit | 50bf0d42efa0fd13b7337e28c9c234d55dafd4cb (patch) | |
tree | 71990faeb0d8cc1fba434fc508cf23ae0003ea0f /cmd/vfyserv | |
parent | 11799d6a99d9cac026a25a64be2f2dffb5ad6e63 (diff) | |
download | nss-hg-50bf0d42efa0fd13b7337e28c9c234d55dafd4cb.tar.gz |
Bug 1574220 - Improve controls after errors in tstcln, selfserv and vfyserv cmds. r=kjacobs
Differential Revision: https://phabricator.services.mozilla.com/D42165
Diffstat (limited to 'cmd/vfyserv')
-rw-r--r-- | cmd/vfyserv/vfyserv.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/vfyserv/vfyserv.c b/cmd/vfyserv/vfyserv.c index 4234ecd09..3c6d01481 100644 --- a/cmd/vfyserv/vfyserv.c +++ b/cmd/vfyserv/vfyserv.c @@ -544,7 +544,12 @@ main(int argc, char **argv) } } if (cipher > 0) { - SSL_CipherPrefSetDefault(cipher, PR_TRUE); + SECStatus rv = SSL_CipherPrefSetDefault(cipher, PR_TRUE); + if (rv != SECSuccess) { + SECU_PrintError(progName, + "error setting cipher default preference"); + goto cleanup; + } } else { Usage(progName); } |