From e4cf148d68fe01b680856ad39739faf99bfc29b4 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 7 Oct 2009 18:31:07 -0400 Subject: build: fix !HAVE_NSS case * staprun_funcs.c (assert_permissions): Move "check_signature_rc" variable inside #if HAVE_NSS. --- runtime/staprun/staprun_funcs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime/staprun/staprun_funcs.c') diff --git a/runtime/staprun/staprun_funcs.c b/runtime/staprun/staprun_funcs.c index e4ccc8da..aef8a2da 100644 --- a/runtime/staprun/staprun_funcs.c +++ b/runtime/staprun/staprun_funcs.c @@ -453,12 +453,11 @@ void assert_permissions( off_t module_size __attribute__ ((unused)) ) { int check_groups_rc; - int check_signature_rc = 0; #if HAVE_NSS /* Attempt to verify the module against its signature. Return failure if the module has been tampered with (altered). */ - check_signature_rc = check_signature (module_data, module_size); + int check_signature_rc = check_signature (module_data, module_size); if (check_signature_rc == MODULE_ALTERED) exit(-1); #endif -- cgit