summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbishakhabanerjee%netscape.com <devnull@localhost>2003-01-07 22:53:13 +0000
committerbishakhabanerjee%netscape.com <devnull@localhost>2003-01-07 22:53:13 +0000
commitb61b180a85c4576eceb8c131c415df07be114b04 (patch)
tree0702b2ab91221191f37ab3943723a61d51727d5e
parentd4d37b5f3088b76e8ad0d1b9c4876d4119e4bedd (diff)
downloadnss-hg-b61b180a85c4576eceb8c131c415df07be114b04.tar.gz
checking return value of NSS_Shutdown. Bug 171263
-rw-r--r--security/nss/cmd/certcgi/certcgi.c3
-rw-r--r--security/nss/cmd/digest/digest.c4
-rw-r--r--security/nss/cmd/p7content/p7content.c4
-rw-r--r--security/nss/cmd/p7sign/p7sign.c4
-rw-r--r--security/nss/cmd/p7verify/p7verify.c4
-rw-r--r--security/nss/cmd/rsaperf/rsaperf.c4
-rw-r--r--security/nss/cmd/signver/signver.c5
7 files changed, 28 insertions, 0 deletions
diff --git a/security/nss/cmd/certcgi/certcgi.c b/security/nss/cmd/certcgi/certcgi.c
index 5806307d8..5377a76a7 100644
--- a/security/nss/cmd/certcgi/certcgi.c
+++ b/security/nss/cmd/certcgi/certcgi.c
@@ -2426,6 +2426,9 @@ main(int argc, char **argv)
fclose(outfile);
#endif
fflush(stdout);
+ if (NSS_Shutdown() != SECSuccess) {
+ exit(1);
+ }
return 0;
}
diff --git a/security/nss/cmd/digest/digest.c b/security/nss/cmd/digest/digest.c
index b9987265b..5405b1a3e 100644
--- a/security/nss/cmd/digest/digest.c
+++ b/security/nss/cmd/digest/digest.c
@@ -246,5 +246,9 @@ main(int argc, char **argv)
return -1;
}
+ if (NSS_Shutdown() != SECSuccess) {
+ exit(1);
+ }
+
return 0;
}
diff --git a/security/nss/cmd/p7content/p7content.c b/security/nss/cmd/p7content/p7content.c
index bc08160e0..8b5ad65ce 100644
--- a/security/nss/cmd/p7content/p7content.c
+++ b/security/nss/cmd/p7content/p7content.c
@@ -262,6 +262,10 @@ main(int argc, char **argv)
SECU_PrintError(progName, "problem decoding data");
return -1;
}
+
+ if (NSS_Shutdown() != SECSuccess) {
+ exit(1);
+ }
return 0;
}
diff --git a/security/nss/cmd/p7sign/p7sign.c b/security/nss/cmd/p7sign/p7sign.c
index 0bff6c1da..09cbd8dcd 100644
--- a/security/nss/cmd/p7sign/p7sign.c
+++ b/security/nss/cmd/p7sign/p7sign.c
@@ -284,5 +284,9 @@ main(int argc, char **argv)
return -1;
}
+ if (NSS_Shutdown() != SECSuccess) {
+ exit(1);
+ }
+
return 0;
}
diff --git a/security/nss/cmd/p7verify/p7verify.c b/security/nss/cmd/p7verify/p7verify.c
index d81dbb3db..81815081b 100644
--- a/security/nss/cmd/p7verify/p7verify.c
+++ b/security/nss/cmd/p7verify/p7verify.c
@@ -297,5 +297,9 @@ main(int argc, char **argv)
return -1;
}
+ if (NSS_Shutdown() != SECSuccess) {
+ exit(1);
+ }
+
return 0;
}
diff --git a/security/nss/cmd/rsaperf/rsaperf.c b/security/nss/cmd/rsaperf/rsaperf.c
index 36a9ea383..36927e718 100644
--- a/security/nss/cmd/rsaperf/rsaperf.c
+++ b/security/nss/cmd/rsaperf/rsaperf.c
@@ -394,5 +394,9 @@ main(int argc, char **argv)
TimingDivide(timeCtx, iters);
printf("one operation every %s\n", TimingGenerateString(timeCtx));
+ if (NSS_Shutdown() != SECSuccess) {
+ exit(1);
+ }
+
return 0;
}
diff --git a/security/nss/cmd/signver/signver.c b/security/nss/cmd/signver/signver.c
index c66d80017..ca56bc862 100644
--- a/security/nss/cmd/signver/signver.c
+++ b/security/nss/cmd/signver/signver.c
@@ -446,5 +446,10 @@ int main(int argc, char **argv)
progName, SECU_ErrorString((int16)PORT_GetError()));
return -1;
}
+
+ if (NSS_Shutdown() != SECSuccess) {
+ exit(1);
+ }
+
return 0;
}