]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/libsmb: check command in make_dc_info_from_cldap_reply()
authorRalph Boehme <slow@samba.org>
Wed, 2 Jul 2025 16:49:51 +0000 (18:49 +0200)
committerJule Anger <janger@samba.org>
Thu, 7 Aug 2025 12:53:17 +0000 (12:53 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14981

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 5217bd1a2334825fed32f40c57f72464d126aac0)

source3/libsmb/dsgetdcname.c

index 6bbe4e0b4ad1369646f9dd5dbf7f897c0f278ae0..695f0c38d851d74cc9d162bffc62bb78747d4246 100644 (file)
@@ -755,6 +755,12 @@ static NTSTATUS make_dc_info_from_cldap_reply(
 
        char addr[INET6_ADDRSTRLEN];
 
+       if (r->command == LOGON_SAM_LOGON_PAUSE_RESPONSE ||
+           r->command == LOGON_SAM_LOGON_PAUSE_RESPONSE_EX)
+       {
+               return NT_STATUS_NETLOGON_NOT_STARTED;
+       }
+
        if (sa != NULL) {
                print_sockaddr(addr, sizeof(addr), &sa->u.ss);
                dc_address = addr;