[DragonFlyBSD - Bug #3262] (New) [PATCH] talk: talk into account sa_len field in sockaddr.

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Jan 14 19:21:40 PST 2021


Issue #3262 has been reported by dancrossnyc.

----------------------------------------
Bug #3262: [PATCH] talk: talk into account sa_len field in sockaddr.
http://bugs.dragonflybsd.org/issues/3262

* Author: dancrossnyc
* Status: New
* Priority: Normal
* Assignee: 
* Category: Userland
* Target version: Latest stable
----------------------------------------
`osockaddr` predates the introduction of the sa_len
field in `struct sockaddr`.  The family has moved to
the second field in the structure, but `talk` didn't
account for this when it constructs a `sockaddr_in`
to send data to another system.

The failure case was kind of odd: one could `talk`
to a user on, say, a Linux machine, the remote user
could respond, and things would work as expected.
However, the inverse case, where a user on Linux
tried to `talk` to a user on Dragonfly failed: the
talk announcement would be made, but an attempt to
respond would fail with a protocol error since the
`sin_family` field would be zero.

---Files--------------------------------
0001-talk-talk-into-account-sa_len-field-in-sockaddr.patch (1.98 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list