Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/dist/bind/bin/named Pull up revision 1.3 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/eda26245e2a8
branches:  netbsd-1-6
changeset: 528151:eda26245e2a8
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Jun 28 11:35:00 2002 +0000

description:
Pull up revision 1.3 (requested by itojun in ticket #387):
Update to BIND 8.3.3.  Fixes buffer overrun in resolver code.

diffstat:

 dist/bind/bin/named/ns_signal.c |  36 +++++++++++++++++++++++++++++++++---
 1 files changed, 33 insertions(+), 3 deletions(-)

diffs (123 lines):

diff -r 38c90dcfad83 -r eda26245e2a8 dist/bind/bin/named/ns_signal.c
--- a/dist/bind/bin/named/ns_signal.c   Fri Jun 28 11:34:48 2002 +0000
+++ b/dist/bind/bin/named/ns_signal.c   Fri Jun 28 11:35:00 2002 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: ns_signal.c,v 1.2 2001/01/27 07:22:00 itojun Exp $     */
+/*     $NetBSD: ns_signal.c,v 1.2.2.1 2002/06/28 11:35:00 lukem Exp $  */
 
 #if !defined(lint) && !defined(SABER)
 static const char sccsid[] = "@(#)ns_main.c    4.55 (Berkeley) 7/1/91";
-static const char rcsid[] = "Id: ns_signal.c,v 8.13 2000/07/11 07:10:12 vixie Exp";
+static const char rcsid[] = "Id: ns_signal.c,v 8.15 2002/05/18 01:39:15 marka Exp";
 #endif /* not lint */
 
 /*
@@ -89,8 +89,10 @@
 #ifdef SVR4    /* XXX */
 # include <sys/sockio.h>
 #else
+#ifndef __hpux
 # include <sys/mbuf.h>
 #endif
+#endif
 
 #include <netinet/in.h>
 #include <net/route.h>
@@ -164,28 +166,43 @@
 
 static SIG_FN
 onhup(int sig) {
+
+       UNUSED(sig);
+
        ns_need_unsafe(main_need_reload);
 }
 
 static SIG_FN
 onintr(int sig) {
+
+       UNUSED(sig);
+
        ns_need_unsafe(main_need_exit);
 }
 
 static SIG_FN
 setdumpflg(int sig) {
+
+       UNUSED(sig);
+
        ns_need_unsafe(main_need_dump);
 }
 
 #ifdef DEBUG
 static SIG_FN
 setIncrDbgFlg(int sig) {
+
+       UNUSED(sig);
+
        desired_debug++;
        ns_need_unsafe(main_need_debug);
 }
 
 static SIG_FN
 setNoDbgFlg(int sig) {
+
+       UNUSED(sig);
+
        desired_debug = 0;
        ns_need_unsafe(main_need_debug);
 }
@@ -194,12 +211,18 @@
 #if defined(QRYLOG) && defined(SIGWINCH)
 static SIG_FN
 setQrylogFlg(int sig) {
+
+       UNUSED(sig);
+
        ns_need_unsafe(main_need_qrylog);
 }
 #endif /*QRYLOG && SIGWINCH*/
 
 static SIG_FN
 setstatsflg(int sig) {
+
+       UNUSED(sig);
+
        ns_need_unsafe(main_need_statsdump);
 }
 
@@ -209,6 +232,8 @@
        int saved_errno = errno;
        struct sigaction sa;
 
+       UNUSED(sig);
+
        memset(&sa, 0, sizeof sa);
        sa.sa_mask = mask;
        sa.sa_handler = discard_pipe;
@@ -216,11 +241,16 @@
                ns_error(ns_log_os, "sigaction failed in discard_pipe: %s",
                         strerror(errno));
        errno = saved_errno;
+#else
+       UNUSED(sig);
 #endif
 }
 
 static SIG_FN
 setreapflg(int sig) {
+
+       UNUSED(sig);
+
        ns_need_unsafe(main_need_reap);
 }
 
@@ -228,7 +258,7 @@
 
 void
 init_signals(void) {
-       int sh;
+       size_t sh;
 
        /* The mask of all our handlers will block all our other handlers. */
        (void)sigemptyset(&mask);



Home | Main Index | Thread Index | Old Index