]> git.ipfire.org Git - thirdparty/samba.git/commit
source4/librpc: Add NULL check in dcerpc_secondary_auth_connection()
authorAnoop C S <anoopcs@samba.org>
Tue, 19 May 2026 10:47:56 +0000 (16:17 +0530)
committerMartin Schwenke <martins@samba.org>
Thu, 21 May 2026 03:24:09 +0000 (03:24 +0000)
commitbd7d2de74503afa8a286aaa06ef7d1562b296937
treeca5f113fc3571f0cff98f7ba95490c37e28a7b59
parent5d919d14f2d43232ab71ed3768d6718a07e32927
source4/librpc: Add NULL check in dcerpc_secondary_auth_connection()

When dcerpc_secondary_auth_connection_send() fails, it returns NULL.
The NULL pointer is passed to dcerpc_secondary_auth_connection_recv()
which dereferences it without checking, causing a NULL pointer
dereference.

Add NULL check before calling the recv function and return
NT_STATUS_NO_MEMORY.

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu May 21 03:24:09 UTC 2026 on atb-devel-224
source4/librpc/rpc/dcerpc_secondary.c