[Bug 283909] bsnmpget/walk: coredump when SNMPPASSWD is empty

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 Jan 2025 19:54:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283909

            Bug ID: 283909
           Summary: bsnmpget/walk: coredump when SNMPPASSWD is empty
           Product: Base System
           Version: 13.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: tphilipp@potion-studios.com

To repro, with a running bsnmpd listening on default port, not the empty
password env var:

$ env SNMPUSER=bsnmp SNMPPRIV=aes SNMPAUTH=sha SNMPPASSWD= bsnmpget 1
Floating point exception (core dumped)
$ ls bsnmpget.core
bsnmpget.core


Same for bsnmpwalk

-- 
You are receiving this mail because:
You are the assignee for the bug.