Please review rt46645 which fixes the problem by resetting result to ISC_R_SUCCESS before the "failure" label is reached when result is ISC_R_NOMORE and the list of records to modify after processing a key fetch is empty.