]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2023-3961:s3: smbd: Remove the SMB_ASSERT() that crashes on bad pipenames.
authorJeremy Allison <jra@samba.org>
Wed, 26 Jul 2023 00:54:41 +0000 (17:54 -0700)
committerJule Anger <janger@samba.org>
Tue, 10 Oct 2023 14:49:39 +0000 (14:49 +0000)
We correctly handle this and just return ENOENT (NT_STATUS_OBJECT_NAME_NOT_FOUND).

Remove knowfail.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15422

Signed-off-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/badpipename [deleted file]
source3/rpc_client/local_np.c

diff --git a/selftest/knownfail.d/badpipename b/selftest/knownfail.d/badpipename
deleted file mode 100644 (file)
index e69715f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-^samba3.smbtorture_s3.smb2.SMB2-INVALID-PIPENAME.smbtorture\(fileserver\)
index dfed7e7beb66074d28ac672e48a54caa28b0a88d..2e9d1b4febeb593226ec805c412b5c694fe576d7 100644 (file)
@@ -551,11 +551,6 @@ struct tevent_req *local_np_connect_send(
        {
                DBG_DEBUG("attempt to connect to invalid pipe pathname %s\n",
                        lower_case_pipename);
-               /*
-                * For now, panic the server until we have
-                * the test code in place.
-                */
-               SMB_ASSERT(false);
                tevent_req_error(req, ENOENT);
                return tevent_req_post(req, ev);
        }