HomeFreeBSD

Fix handling of errors from sblock() in soreceive_stream().

Description

Fix handling of errors from sblock() in soreceive_stream().

Previously we would attempt to unlock the socket buffer despite having
failed to lock it. Simply return an error instead: no resources need
to be released at this point, and doing so is consistent with
soreceive_generic().

PR: 238789
Submitted by: Greg Becker <greg@codeconcepts.com>
MFC after: 1 week

Details

Committed
markjJul 2 2019, 2:24 PM
Parents
rS349598: MFC r349592: Import tzdata 2019b
Branches
Unknown
Tags
Unknown