]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup from BIND 8:
authorMark Andrews <marka@isc.org>
Mon, 28 May 2001 06:25:42 +0000 (06:25 +0000)
committerMark Andrews <marka@isc.org>
Mon, 28 May 2001 06:25:42 +0000 (06:25 +0000)
1172.   [bug]           allow res_{n}update to take a single unlinked element.

lib/bind/resolv/res_update.c

index d098a68fecb625163e70b198c309f8f8b3842c2c..8e7b010763960006c378e81e0fbf7596d3650327 100644 (file)
@@ -1,5 +1,5 @@
 #if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "$Id: res_update.c,v 1.2 2001/04/02 07:52:33 marka Exp $";
+static const char rcsid[] = "$Id: res_update.c,v 1.3 2001/05/28 06:25:42 marka Exp $";
 #endif /* not lint */
 
 /*
@@ -103,7 +103,8 @@ res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) {
 
        /* Thread all of the updates onto a list of groups. */
        INIT_LIST(zgrps);
-       for (rrecp = rrecp_in; rrecp; rrecp = NEXT(rrecp, r_link)) {
+       for (rrecp = rrecp_in; rrecp;
+            rrecp = LINKED(rrecp, r_link) ? NEXT(rrecp, r_link) : NULL) {
                struct in_addr nsaddrs[MAXNS];
                int i;
                /* XXX need to rewrite res_findzonecut */