Page MenuHomeFreeBSD

bsnmpd: fix unix/stream socket operation
ClosedPublic

Authored by glebius on Jul 16 2025, 6:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 11, 4:45 PM
Unknown Object (File)
Tue, Dec 9, 1:15 PM
Unknown Object (File)
Sat, Nov 29, 2:18 PM
Unknown Object (File)
Wed, Nov 26, 7:20 AM
Unknown Object (File)
Oct 19 2025, 7:55 PM
Unknown Object (File)
Oct 17 2025, 6:42 AM
Unknown Object (File)
Oct 13 2025, 12:21 PM
Unknown Object (File)
Oct 13 2025, 12:21 PM
Subscribers

Details

Summary

With new send method, that gives us directly port_input pointer, we know
the correct file descriptor right away, no matter are we in SOCK_DGRAM or
in SOCK_STREAM mode. Previously, the function tried to search for the
socket, and that was totally wrong. With several simultaneous connections
this end up with sending a reply to incorrect socket.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable