summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/librsgt_read.c')
-rw-r--r--runtime/librsgt_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/librsgt_read.c b/runtime/librsgt_read.c
index 0cc5f492..32a62c65 100644
--- a/runtime/librsgt_read.c
+++ b/runtime/librsgt_read.c
@@ -744,7 +744,7 @@ verifySigblkFinish(gtfile gf)
root = NULL;
for(j = 0 ; j < gf->nRoots ; ++j) {
if(root == NULL) {
- root = gf->roots_hash[j];
+ root = gf->roots_valid[j] ? gf->roots_hash[j] : NULL;
gf->roots_valid[j] = 0; /* guess this is redundant with init, maybe del */
} else if(gf->roots_valid[j]) {
rootDel = root;