git: DragonFly_RELEASE_6_4 socket: Fix a bug in soreceive() for the MSG_OOB case

Aaron LI aly at crater.dragonflybsd.org
Sat Nov 4 20:35:06 PDT 2023


commit 3d1a4b11022b5580488844eac5a8e8e367299614
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/3d1a4b11022b5580488844eac5a8e8e367299614


-- 
DragonFly BSD source repository


More information about the Commits mailing list