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
Reviewer
kevans
Differential Revision
D26298: [unix(4) cleanup 5/8] Avoid an unnecessary malloc() for dgram sockets.
Parents
rS365762: Simplify unp_disconnect() callers.
Branches
Unknown
Tags
Unknown