diff options
author | ume <ume@FreeBSD.org> | 2014-08-12 12:36:06 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2014-08-12 12:36:06 +0000 |
commit | 228ba577ee2fd73c3d7730e20393d74b4d891111 (patch) | |
tree | 938ab439d250fb1516204993b2240002b1f6ab68 /lib/libc/resolv/res_mkupdate.c | |
parent | e288c0740572b3d645a22c8a24a9d70bd174d642 (diff) | |
download | FreeBSD-src-228ba577ee2fd73c3d7730e20393d74b4d891111.zip FreeBSD-src-228ba577ee2fd73c3d7730e20393d74b4d891111.tar.gz |
Update our stub resolver to final version of libbind.
Obtained from: ISC
Diffstat (limited to 'lib/libc/resolv/res_mkupdate.c')
-rw-r--r-- | lib/libc/resolv/res_mkupdate.c | 5 |
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; |