diff options
author | EKR <ekr@rtfm.com> | 2016-11-12 11:42:11 +0900 |
---|---|---|
committer | EKR <ekr@rtfm.com> | 2016-11-12 11:42:11 +0900 |
commit | 8b6ef02cba992405357b5b0152a1d517e0d58048 (patch) | |
tree | b1d156da1206e6fe6a7fd8c7bc188a8a877a54e9 /cmd/tstclnt | |
parent | 14c0fca4b7be342e331d71b98fbda0010ad57845 (diff) | |
download | nss-hg-8b6ef02cba992405357b5b0152a1d517e0d58048.tar.gz |
Fix pre-connect check. Probable fix for bustage. r=me
Diffstat (limited to 'cmd/tstclnt')
-rw-r--r-- | cmd/tstclnt/tstclnt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/tstclnt/tstclnt.c b/cmd/tstclnt/tstclnt.c index a4008e562..8b9b47a28 100644 --- a/cmd/tstclnt/tstclnt.c +++ b/cmd/tstclnt/tstclnt.c @@ -1788,7 +1788,7 @@ main(int argc, char **argv) prStatus = PR_Connect(s, &addr, timeoutInterval); if (prStatus == PR_SUCCESS) { PR_Shutdown(s, PR_SHUTDOWN_BOTH); - goto done; + goto success; } err = PR_GetError(); if ((err != PR_CONNECT_REFUSED_ERROR) && @@ -1807,6 +1807,7 @@ main(int argc, char **argv) goto done; } +success: /* open the cert DB, the key DB, and the secmod DB. */ if (openDB) { rv = NSS_Init(certDir); |