diff options
author | peter <peter@FreeBSD.org> | 1996-01-22 05:55:52 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-01-22 05:55:52 +0000 |
commit | 6c7c7b6c89984c5f332a07df1bc580151082ed9c (patch) | |
tree | 34f5d44666d65631a83657a5ae8e73ba5e1a31ed /usr.sbin/named | |
parent | 8e0a469c3fe97ea716298a6bee4fb09e6a786918 (diff) | |
download | FreeBSD-src-6c7c7b6c89984c5f332a07df1bc580151082ed9c.zip FreeBSD-src-6c7c7b6c89984c5f332a07df1bc580151082ed9c.tar.gz |
Merge in 4.9.3-P1 changes and bump version number.
(Patch1 only affects named and BSD/OS makefiles that we dont use)
Diffstat (limited to 'usr.sbin/named')
-rw-r--r-- | usr.sbin/named/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/named/ns_main.c | 5 | ||||
-rw-r--r-- | usr.sbin/named/ns_resp.c | 6 | ||||
-rw-r--r-- | usr.sbin/named/xfer/Makefile | 2 |
4 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/named/Makefile b/usr.sbin/named/Makefile index b9abc6b..0afe83e 100644 --- a/usr.sbin/named/Makefile +++ b/usr.sbin/named/Makefile @@ -67,7 +67,7 @@ OBJS+= version.o CLEANFILES+=version.c version.o SUBDIR= tools xfer -VER = 4.9.3-REL +VER = 4.9.3-P1 version.c: ${.CURDIR}/Version.c ${.CURDIR}/Makefile ${SRCS} (LC_TIME=; export LC_TIME; u=$${USER-root} d=`pwd |sed -e 's|/obj/|/src/|'` \ diff --git a/usr.sbin/named/ns_main.c b/usr.sbin/named/ns_main.c index 13576d7..d0d3951 100644 --- a/usr.sbin/named/ns_main.c +++ b/usr.sbin/named/ns_main.c @@ -1,6 +1,6 @@ #if !defined(lint) && !defined(SABER) static char sccsid[] = "@(#)ns_main.c 4.55 (Berkeley) 7/1/91"; -static char rcsid[] = "$Id: ns_main.c,v 1.5 1996/01/01 08:44:53 peter Exp $"; +static char rcsid[] = "$Id: ns_main.c,v 1.6 1996/01/07 05:48:33 peter Exp $"; #endif /* not lint */ /* @@ -656,7 +656,8 @@ main(argc, argv, envp) for (udpcnt = 0; udpcnt < 42; udpcnt++) { /*XXX*/ int from_len = sizeof(from_addr); - if ((n = recvfrom(dqp->dq_dfd, (char *)buf, sizeof(buf), 0, + if ((n = recvfrom(dqp->dq_dfd, (char *)buf, + MIN(PACKETSZ, sizeof buf), 0, (struct sockaddr *)&from_addr, &from_len)) < 0) { #if defined(SPURIOUS_ECONNREFUSED) diff --git a/usr.sbin/named/ns_resp.c b/usr.sbin/named/ns_resp.c index 0e78db6..756a0d4 100644 --- a/usr.sbin/named/ns_resp.c +++ b/usr.sbin/named/ns_resp.c @@ -1,6 +1,6 @@ #if !defined(lint) && !defined(SABER) static char sccsid[] = "@(#)ns_resp.c 4.65 (Berkeley) 3/3/91"; -static char rcsid[] = "$Id: ns_resp.c,v 1.4 1995/10/23 11:11:53 peter Exp $"; +static char rcsid[] = "$Id: ns_resp.c,v 1.5 1996/01/07 05:48:38 peter Exp $"; #endif /* not lint */ /* @@ -944,10 +944,10 @@ ns_resp(msg, msglen) */ if ((!restart || !cname) && qp->q_cmsglen && ancount) { dprintf(1, (ddt, "Cname second pass\n")); - newmsglen = qp->q_cmsglen; + newmsglen = MIN(PACKETSZ, qp->q_cmsglen); bcopy(qp->q_cmsg, newmsg, newmsglen); } else { - newmsglen = msglen; + newmsglen = MIN(PACKETSZ, msglen); bcopy(msg, newmsg, newmsglen); } hp = (HEADER *) newmsg; diff --git a/usr.sbin/named/xfer/Makefile b/usr.sbin/named/xfer/Makefile index bf26e94..d50a801 100644 --- a/usr.sbin/named/xfer/Makefile +++ b/usr.sbin/named/xfer/Makefile @@ -10,7 +10,7 @@ BINDIR= /usr/libexec MAN8= named-xfer.8 -VER = 4.9.3-REL +VER = 4.9.3-P1 version.c: ${.CURDIR}/../Version.c ${.CURDIR}/Makefile ${SRCS} (LC_TIME=; export LC_TIME; u=$${USER-root} d=`pwd |sed -e 's|/obj/|/src/|'` \ |