summaryrefslogtreecommitdiff
path: root/security/nss/cmd
diff options
context:
space:
mode:
authorsonmi%netscape.com <devnull@localhost>2001-01-23 05:01:24 +0000
committersonmi%netscape.com <devnull@localhost>2001-01-23 05:01:24 +0000
commit87336377a4343e2917adfaa3a6faf63b2e1f28f9 (patch)
tree571d28b33b161818d96253c3f1d81c2c72d64f86 /security/nss/cmd
parent3a026a321c808e73cebb5a406d40584c889bc95e (diff)
downloadnss-hg-87336377a4343e2917adfaa3a6faf63b2e1f28f9.tar.gz
cleanup after testclient -q successfully connected before exiting
Diffstat (limited to 'security/nss/cmd')
-rw-r--r--security/nss/cmd/tstclnt/tstclnt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/nss/cmd/tstclnt/tstclnt.c b/security/nss/cmd/tstclnt/tstclnt.c
index 98f5a8366..7172ee23b 100644
--- a/security/nss/cmd/tstclnt/tstclnt.c
+++ b/security/nss/cmd/tstclnt/tstclnt.c
@@ -405,8 +405,13 @@ int main(int argc, char **argv)
return SECFailure;
}
prStatus = PR_Connect(s, &addr, PR_INTERVAL_NO_TIMEOUT);
- if (prStatus == PR_SUCCESS)
+ if (prStatus == PR_SUCCESS) {
+ PR_Shutdown(s, PR_SHUTDOWN_BOTH);
+ PR_Close(s);
+ NSS_Shutdown();
+ PR_Cleanup();
return SECSuccess;
+ }
err = PR_GetError();
if ((err != PR_CONNECT_REFUSED_ERROR) &&
(err != PR_CONNECT_RESET_ERROR)) {