]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: dcip_check_name() only takes pss as const input value
authorStefan Metzmacher <metze@samba.org>
Fri, 27 Sep 2024 11:29:31 +0000 (13:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 1 Oct 2024 09:53:32 +0000 (09:53 +0000)
The makes things easier to understand, because the callers
pass in &domain->dcaddr, which could also used as output value.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_cm.c

index b39fc6056ecfbe4908fdf3b769f3392c7deabb12..d8a7ef7ce63e09db567e80f059c26f90717a9f6b 100644 (file)
@@ -1201,7 +1201,7 @@ out:
 
 static bool dcip_check_name(TALLOC_CTX *mem_ctx,
                            const struct winbindd_domain *domain,
-                           struct sockaddr_storage *pss,
+                           const struct sockaddr_storage *pss,
                            char **name, uint32_t request_flags)
 {
        struct samba_sockaddr sa = {0};