HomeFreeBSD

Avoid an unnecessary malloc() when connecting dgram sockets.

Description

Avoid an unnecessary malloc() when connecting dgram sockets.

The allocated memory is only required for SOCK_STREAM and SOCK_SEQPACKET
sockets.

Reviewed by: kevans
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26298

Details

Provenance
markjAuthored on Sep 15 2020, 7:23 PM
Parents
rGf0317f868b6d: Simplify unp_disconnect() callers.
Branches
Unknown
Tags
Unknown

Event Timeline