summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaie%kuix.de <devnull@localhost>2012-03-01 17:11:18 +0000
committerkaie%kuix.de <devnull@localhost>2012-03-01 17:11:18 +0000
commite84848f42bc2c7def9ab002392c56fe82aec36ee (patch)
treef005f56322ba0d8090663521e5e2a7c7f284e085
parentc03f744d44c90b8bb8771b999e59e9292d49be7b (diff)
downloadnss-hg-e84848f42bc2c7def9ab002392c56fe82aec36ee.tar.gz
Bug 679610, fix contributed by David Volgyes and aceman. r=wtc
-rw-r--r--security/nss/cmd/crlutil/crlutil.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/security/nss/cmd/crlutil/crlutil.c b/security/nss/cmd/crlutil/crlutil.c
index 91e516383..8f6b768e9 100644
--- a/security/nss/cmd/crlutil/crlutil.c
+++ b/security/nss/cmd/crlutil/crlutil.c
@@ -987,10 +987,7 @@ int main(int argc, char **argv)
break;
case 't': {
- char *type;
-
- type = strdup(optstate->value);
- crlType = atoi (type);
+ crlType = atoi(optstate->value);
if (crlType != SEC_CRL_TYPE && crlType != SEC_KRL_TYPE) {
PR_fprintf(PR_STDERR, "%s: invalid crl type\n", progName);
PL_DestroyOptState(optstate);