From dee48bab59646ac257bc99ba23662f8bef8bf480 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Wed, 17 May 2017 11:42:54 -0400 Subject: [PATCH] fix wrong assertion. Found by PVS-Studio --- src/main/modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/modules.c b/src/main/modules.c index 91218dd..34a7634 100644 --- a/src/main/modules.c +++ b/src/main/modules.c @@ -578,7 +578,7 @@ static int module_conf_parse(module_instance_t *node, void **handle) */ if (node->entry->module->inst_size) { *handle = talloc_zero_array(node, uint8_t, node->entry->module->inst_size); - rad_assert(handle); + rad_assert(*handle); talloc_set_name(*handle, "rlm_%s_t", node->entry->module->name ? node->entry->module->name : "config"); -- 2.1.4