HomeFreeBSD

svc.c: Check for a non-NULL xp_socket

Description

svc.c: Check for a non-NULL xp_socket

Commit a16ff32f04b5 added support to the kernel RPC to set
TCP_USE_DDP.
However, for the unusual case of a NFSv4.1/4.2 non-NULL callback,
the xp_socket field of SVCXPRT is NULL, since it uses the same
socket as the client->server connection.

This patch adds the check for this to avoid crashes.

This only affects NFSv4.1/4.2 mounts where either pNFS or
delegations are in use.

(cherry picked from commit 6c9170e0afc4ebec81ba88a6370ebf6cb55520ba)

Details

Provenance
rmacklemAuthored on May 28 2024, 2:22 AM
Parents
rG1ed9f1b038fc: ntp: Update version strings
Branches
Unknown
Tags
Unknown