From c06f7bf9d662ce22ed7b56fe1c72968aa3379377 Mon Sep 17 00:00:00 2001 From: "relyea%netscape.com" Date: Wed, 5 May 2004 00:36:52 +0000 Subject: [PATCH] Fix mechanism command. --- security/nss/cmd/pk11util/pk11table.c | 2 +- security/nss/cmd/pk11util/pk11util.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/security/nss/cmd/pk11util/pk11table.c b/security/nss/cmd/pk11util/pk11table.c index f6686a89088..f8d7f813c54 100644 --- a/security/nss/cmd/pk11util/pk11table.c +++ b/security/nss/cmd/pk11util/pk11table.c @@ -1160,7 +1160,7 @@ const Commands _commands[] = { "Create a new CK_MECHANISM object with type NULL paramters and specified type\n" " varName variable name of the new mechansim\n" " mechanismType CKM_ mechanism type value to set int the type field\n", - {ArgMechanism|ArgOut, ArgULong, ArgNone, ArgNone, ArgNone, + {ArgVar|ArgNew, ArgULong, ArgNone, ArgNone, ArgNone, ArgNone, ArgNone, ArgNone, ArgNone, ArgNone }}, {"BuildTemplate", F_BuildTemplate, "BuildTemplate template\n\n" diff --git a/security/nss/cmd/pk11util/pk11util.c b/security/nss/cmd/pk11util/pk11util.c index 8a863a7dbfc..3688efd9d9e 100644 --- a/security/nss/cmd/pk11util/pk11util.c +++ b/security/nss/cmd/pk11util/pk11util.c @@ -748,6 +748,7 @@ DeleteVariable(const char *bp) if (PL_strcasecmp((*current)->vname,vname) == 0) { argFree((*current)->value); *current = (*current)->next; + break; } } return CKR_OK;