network/stack: Assume no hook means no ancillary data.

At least for process_ancillary_data_no_container, anyway,
which is only used by the IP modules at present.

Fixes #19756.
This commit is contained in:
Augustin Cavalier
2025-09-17 17:21:30 -04:00
parent bc5eb45ad5
commit 771bccb4b9
@@ -268,8 +268,10 @@ process_ancillary_data(net_socket* socket,
return B_OK;
}
if (socket->first_info->process_ancillary_data_no_container == NULL)
return B_NOT_SUPPORTED;
if (socket->first_info->process_ancillary_data_no_container == NULL) {
messageHeader->msg_controllen = 0;
return B_OK;
}
bytesWritten = socket->first_info->process_ancillary_data_no_container(
socket->first_protocol, buffer, dataBuffer,