$ nsupdate
> update
Segmentation fault
from https://bugs.archlinux.org/task/30139?getfile=8868
(they say: "The upstream bug reference number is 29550")
Patch3: %{name}-sdb-ldap.patch
Patch4: %{name}-ac-libs.patch
Patch5: %{name}-edns-client-subnet.patch
+Patch6: nsupdate_segfault.patch
URL: https://www.isc.org/software/bind
BuildRequires: autoconf >= 2.59
BuildRequires: automake
%{?with_ldap:%patch3 -p1}
%patch4 -p1
%{?with_hip:mv bind-hip/hip_55.[ch] lib/dns/rdata/generic}
+%patch6 -p0
%{?with_edns_cli:%patch5 -p0}
--- /dev/null
+fix for "Segmentation fault" in nsupdate
+
+ $ nsupdate
+ > update
+ Segmentation fault
+
+from https://bugs.archlinux.org/task/30139?getfile=8868
+(they say: "The upstream bug reference number is 29550")
+--- /home/bisson/Desktop/bind-9.9.1-P1/bin/nsupdate/nsupdate.c 2012-06-02 01:29:52.000000000 +1000
++++ bin/nsupdate/nsupdate.c 2012-06-06 02:50:37.894357220 +1000
+@@ -376,7 +376,7 @@
+ char sc, dc;
+
+ if (string == NULL)
+- return (NULL);
++ return &string;
+
+ for (; *string != '\0'; string++) {
+ sc = *string;