git: socket: Fix a bug in soreceive() for the MSG_OOB case
Aaron LI
aly at crater.dragonflybsd.org
Sat Nov 4 20:33:02 PDT 2023
commit 387ce9a64f59a6ad19b226fffac4272072b09db5
Author: Aaron LI <aly at aaronly.me>
Date: Wed Nov 1 12:45:14 2023 +0800
socket: Fix a bug in soreceive() for the MSG_OOB case
For the MSG_OOB case, soreceive() was failing to traverse the mbuf chain
when supplying the sio to return the data. Fix the bug by adding the
missing 'm = m_free(m)'.
While there, update the description about function parameters.
Reviewed-by: dillon
Summary of changes:
sys/kern/uipc_socket.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/387ce9a64f59a6ad19b226fffac4272072b09db5
--
DragonFly BSD source repository
More information about the Commits
mailing list