Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2005 14:36:11 GMT
From:      hiroshi oota <xys@excite.co.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/76502: bsnmpd stop 
Message-ID:  <200501201436.j0KEaB4M080243@www.freebsd.org>
Resent-Message-ID: <200501201440.j0KEeSuS024018@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         76502
>Category:       bin
>Synopsis:       bsnmpd stop
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 20 14:40:27 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     hiroshi oota
>Release:        6.0-CURRENT
>Organization:
>Environment:
FreeBSD localhost 6.0-CURRENT FreeBSD 6.0-CURRENT #25 Wed Dec 19 13:55:04 JST 2004     root@:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
bnsmpd exits when I connect to unix domain sockst
>How-To-Repeat:
snmpwalk -v 2c -c community /var/run/snmpd.sock
>Fix:
--- contrib/bsnmp/snmpd/main.c.orig Sat Aug 14 00:39:43 2004
+++ contrib/bsnmp/snmpd/main.c  Tue Jan  4 20:40:15 2005
@@ -612,7 +612,7 @@
 #ifdef USE_LIBBEGEMOT
        if (f->id >= 0)
                return (0);
-       if ((f->fd = poll_register(f->fd, input, f, POLL_IN)) < 0) {
+       if ((f->id = poll_register(f->fd, input, f, POLL_IN)) < 0) {
                err = errno;
                syslog(LOG_ERR, "select fd %d: %m", f->fd);
                errno = err;

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501201436.j0KEaB4M080243>