rpc_server3: Avoid a literal number available as a constant
authorVolker Lendecke <vl@samba.org>
Fri, 8 Oct 2021 09:38:30 +0000 (11:38 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Oct 2021 19:28:31 +0000 (19:28 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
librpc/rpc/dcerpc_helper.c

index f53523b23ead198d50122f557ecf6441da087eac..cf0deeb20794ba3a5b1a3118b9470f6225276884 100644 (file)
@@ -33,7 +33,7 @@ static bool smb3_sid_parse(const struct dom_sid *sid,
        uint16_t encrypt;
        uint16_t cipher;
 
-       if (sid->sub_auths[0] != 1397571891) {
+       if (sid->sub_auths[0] != global_sid_Samba_SMB3.sub_auths[0]) {
                return false;
        }