]> granicus.if.org Git - p11-kit/commitdiff
Fix null pointer dereference.
authorStef Walter <stefw@collabora.co.uk>
Tue, 24 May 2011 16:36:25 +0000 (18:36 +0200)
committerStef Walter <stefw@collabora.co.uk>
Tue, 24 May 2011 16:36:25 +0000 (18:36 +0200)
p11-kit/p11-kit-lib.c

index 10bd83ff5ff4c1032b736c775d72df798f557125..59cdd19eb99ef4f0dd4028cb3e343b998e861076 100644 (file)
@@ -1058,7 +1058,7 @@ p11_kit_registered_option (CK_FUNCTION_LIST_PTR funcs, const char *field)
                }
 
                if (config) {
-                       option = hash_get (module->config, field);
+                       option = hash_get (config, field);
                        if (option)
                                option = strdup (option);
                }