summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/staprun_funcs.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-07 18:31:07 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-07 18:31:07 -0400
commite4cf148d68fe01b680856ad39739faf99bfc29b4 (patch)
treee822f75f85be0ab4d6d3d1a14377c08301584ad0 /runtime/staprun/staprun_funcs.c
parente6638df404688a1af5e9713befc298984241af5b (diff)
downloadsystemtap-steved-e4cf148d68fe01b680856ad39739faf99bfc29b4.tar.gz
systemtap-steved-e4cf148d68fe01b680856ad39739faf99bfc29b4.tar.xz
systemtap-steved-e4cf148d68fe01b680856ad39739faf99bfc29b4.zip
build: fix !HAVE_NSS case
* staprun_funcs.c (assert_permissions): Move "check_signature_rc" variable inside #if HAVE_NSS.
Diffstat (limited to 'runtime/staprun/staprun_funcs.c')
-rw-r--r--runtime/staprun/staprun_funcs.c3
1 files changed, 1 insertions, 2 deletions
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