Refactor loop body as copy_non_dnssec_records.

(cherry picked from commit d26e1254)
68 jobs for !2790 with 1501-summary-threadsanitizer-lock-order-inversion-potential-deadlock-in-pthread_rwlock_wrlock-v9_11 in 18 minutes and 46 seconds (queued for 10 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #494760
amd64 linux
🐞:sid:amd64

00:01:11

passed #494758
amd64 linux
autoreconf:sid:amd64

00:00:35

passed #494759
amd64 linux
misc:sid:amd64

00:00:21

 
  Build
passed #494773
amd64 linux
asan:sid:amd64

00:02:07

passed #494778
amd64 freebsd
clang:freebsd11.3:amd64

00:01:41

passed #494779
amd64 freebsd
clang:freebsd12.0:amd64

00:01:25

passed #494780
amd64 openbsd
clang:openbsd6.5:amd64

00:07:23

passed #494774
amd64 linux
clang:stretch:amd64

00:01:45

passed #494775
i386 linux
clang:stretch:i386

00:01:24

passed #494761
amd64 linux
gcc:alpine3.10:amd64

00:03:36

passed #494772
amd64 linux
gcc:bionic:amd64

00:02:34

passed #494767
amd64 linux
gcc:buster:amd64

00:01:45

passed #494762
amd64 linux
gcc:centos6:amd64

00:02:14

passed #494763
amd64 linux
gcc:centos7:amd64

00:02:45

passed #494764
amd64 linux
gcc:centos8:amd64

00:02:52

passed #494770
amd64 linux
gcc:fedora31:amd64

00:03:02

passed #494765
amd64 linux
gcc:jessie:amd64

00:03:07

passed #494768
amd64 linux
gcc:sid:amd64

00:02:25

passed #494769
i386 linux
gcc:sid:i386

00:02:50

passed #494766
amd64 linux
gcc:stretch:amd64

00:02:12

passed #494771
amd64 linux
gcc:xenial:amd64

00:01:11

passed #494782
amd64 windows
msvc:windows:amd64

00:02:23

passed #494776
amd64 linux
nocrypto:sid:amd64

00:02:39

passed #494781
amd64 linux
nolibtool:sid:amd64

00:02:56

passed #494777
amd64 linux
pkcs11:sid:amd64

00:03:47

 
  Unit
passed #494795
amd64 linux
unit:asan:sid:amd64

00:01:40

passed #494799
amd64 freebsd
unit:clang:freebsd11.3:amd64

00:00:30

passed #494800
amd64 freebsd
unit:clang:freebsd12.0:amd64

00:00:23

passed #494796
amd64 linux
unit:clang:stretch:amd64

00:00:33

passed #494783
amd64 linux
unit:gcc:alpine3.10:amd64

00:00:56

passed #494794
amd64 linux
unit:gcc:bionic:amd64

00:00:46

passed #494789
amd64 linux
unit:gcc:buster:amd64

00:01:00

passed #494784
amd64 linux
unit:gcc:centos6:amd64

00:01:06

passed #494785
amd64 linux
unit:gcc:centos7:amd64

00:00:54

passed #494786
amd64 linux
unit:gcc:centos8:amd64

00:00:58

passed #494792
amd64 linux
unit:gcc:fedora31:amd64

00:01:11

passed #494787
amd64 linux
unit:gcc:jessie:amd64

00:00:38

passed #494790
amd64 linux
unit:gcc:sid:amd64

00:00:47

passed #494791
i386 linux
unit:gcc:sid:i386

00:00:46

passed #494788
amd64 linux
unit:gcc:stretch:amd64

00:00:43

passed #494793
amd64 linux
unit:gcc:xenial:amd64

00:00:53

passed #494797
amd64 linux
unit:nocrypto:sid:amd64

00:01:04

passed #494801
amd64 linux
unit:nolibtool:sid:amd64

00:01:23

passed #494798
amd64 linux
unit:pkcs11:sid:amd64

00:01:02

 
  System
passed #494814
amd64 linux
system:asan:sid:amd64

00:07:24

passed #494817
amd64 freebsd
system:clang:freebsd11.3:amd64

00:04:58

passed #494818
amd64 freebsd
system:clang:freebsd12.0:amd64

00:05:01

passed #494802
amd64 linux
system:gcc:alpine3.10:amd64

00:05:23

passed #494813
amd64 linux
system:gcc:bionic:amd64

00:05:51

passed #494826
linux amd64
system:gcc:buster:amd64

00:06:03

passed #494803
amd64 linux
system:gcc:centos6:amd64

00:05:46

passed #494804
amd64 linux
system:gcc:centos7:amd64

00:06:02

passed #494805
amd64 linux
system:gcc:centos8:amd64

00:05:44

passed #494811
amd64 linux
system:gcc:fedora31:amd64

00:05:15

passed #494828
linux amd64
system:gcc:jessie:amd64

00:05:34

passed #494809
amd64 linux
system:gcc:sid:amd64

00:05:31

passed #494810
i386 linux
system:gcc:sid:i386

00:05:52

passed #494807
amd64 linux
system:gcc:stretch:amd64

00:05:41

passed #494829
linux amd64
system:gcc:xenial:amd64

00:05:40

passed #494815
amd64 linux
system:nocrypto:sid:amd64

00:03:15

passed #494819
amd64 linux
system:nolibtool:sid:amd64

00:05:30

passed #494816
amd64 linux
system:pkcs11:sid:amd64

00:05:27

failed #494808
amd64 linux
system:gcc:buster:amd64

00:06:04

failed #494806
amd64 linux
system:gcc:jessie:amd64

00:06:04

failed #494812
amd64 linux
system:gcc:xenial:amd64

00:06:02

 
  Docs
passed #494820
amd64 linux
docs:sid:amd64

00:01:14

 
  Postcheck
passed #494822
amd64 linux
cppcheck:gcc:sid:amd64

00:01:04

passed #494821
amd64 linux
scan-build:buster:amd64

00:13:31