Index: drill/chasetrace.c
===================================================================
--- drill/chasetrace.c	(revision 2344)
+++ drill/chasetrace.c	(working copy)
@@ -461,7 +461,7 @@
 										for (ksk_i = 0; ksk_i < ldns_rr_list_rr_count(keys); ksk_i++) {
 											if (ldns_rdf2native_int16(ldns_rr_rrsig_keytag(ksk_sig)) ==
 											    ldns_calc_keytag(ldns_rr_list_rr(keys, ksk_i))) {
-												result = ldns_verify_rrsig(rrset, cur_sig, ldns_rr_list_rr(keys, key_i));
+												result = ldns_verify_rrsig(rrset, ksk_sig, ldns_rr_list_rr(keys, ksk_i));
 												if (result == LDNS_STATUS_OK) {
 													for (tkey_i = 0; tkey_i < ldns_rr_list_rr_count(trusted_keys); tkey_i++) {
 														if (ldns_rr_compare_ds(ldns_rr_list_rr(keys, ksk_i),
