diff options
author | Kamil Dudka <kdudka@redhat.com> | 2009-05-27 16:24:24 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-05-29 12:55:44 -0400 |
commit | f9810df89bfd45d0b69f50b092ecc3593c8bade3 (patch) | |
tree | 37045e42bbce3afca522620d96760e9bc19612ef | |
parent | 5ad2940670b06e0d9ed2db03ea362385d73e86cb (diff) | |
download | pemnss-f9810df89bfd45d0b69f50b092ecc3593c8bade3.tar.gz pemnss-f9810df89bfd45d0b69f50b092ecc3593c8bade3.tar.xz pemnss-f9810df89bfd45d0b69f50b092ecc3593c8bade3.zip |
Do not bypass initialization if module arguments are omitted.
501058
-rw-r--r-- | pinst.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -415,14 +415,11 @@ pem_Initialize CK_C_INITIALIZE_ARGS_PTR modArgs = NSSCKFWInstance_GetInitArgs(fwInstance); - if (!modArgs) { + if (!modArgs || !modArgs->LibraryParameters) { goto done; } - if (modArgs->LibraryParameters) { - modparms = (unsigned char *) modArgs->LibraryParameters; - } - if (modparms) - plog("Initialized with %s\n", modparms); + modparms = (unsigned char *) modArgs->LibraryParameters; + plog("Initialized with %s\n", modparms); /* * The initialization string format is a space-delimited file of |