bin/76502: bsnmpd stop

hiroshi oota xys at excite.co.jp
Thu Jan 20 06:40:29 PST 2005


>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:


More information about the freebsd-bugs mailing list