summaryrefslogtreecommitdiffstats
path: root/lib/libc/resolv/res_mkupdate.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2014-08-30 10:16:25 +0000
committerume <ume@FreeBSD.org>2014-08-30 10:16:25 +0000
commit7642dd9269b5e4ac7a60c333921d606f62925a5a (patch)
tree3d3bc3eb7ea30467632ad8ae097b2ee653990edb /lib/libc/resolv/res_mkupdate.c
parent80004c0874fc6f974f7940f2c3148eaa440d04f4 (diff)
downloadFreeBSD-src-7642dd9269b5e4ac7a60c333921d606f62925a5a.zip
FreeBSD-src-7642dd9269b5e4ac7a60c333921d606f62925a5a.tar.gz
MFC r269867:
Update our stub resolver to final version of libbind (libbind-6.0). Obtained from: ISC
Diffstat (limited to 'lib/libc/resolv/res_mkupdate.c')
-rw-r--r--lib/libc/resolv/res_mkupdate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/resolv/res_mkupdate.c b/lib/libc/resolv/res_mkupdate.c
index 589c056..00bce4c 100644
--- a/lib/libc/resolv/res_mkupdate.c
+++ b/lib/libc/resolv/res_mkupdate.c
@@ -22,7 +22,7 @@
*/
#if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "$Id: res_mkupdate.c,v 1.4.18.4 2005/10/14 05:44:12 marka Exp $";
+static const char rcsid[] = "$Id: res_mkupdate.c,v 1.10 2008/12/11 09:59:00 marka Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
@@ -116,7 +116,8 @@ res_nmkupdate(res_state statp, ns_updrec *rrecp_in, u_char *buf, int buflen) {
return (-1);
memset(buf, 0, HFIXEDSZ);
hp = (HEADER *) buf;
- hp->id = htons(++statp->id);
+ statp->id = res_nrandomid(statp);
+ hp->id = htons(statp->id);
hp->opcode = ns_o_update;
hp->rcode = NOERROR;
cp = buf + HFIXEDSZ;
OpenPOWER on IntegriCloud