]> 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)
committerGünther Deschner <gd@samba.org>
Wed, 30 Jul 2025 09:09:40 +0000 (09:09 +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>
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;