]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli: Fix a signed/unsigned comparison warning
authorVolker Lendecke <vl@samba.org>
Thu, 28 Nov 2024 11:19:27 +0000 (12:19 +0100)
committerMartin Schwenke <martins@samba.org>
Mon, 2 Dec 2024 05:52:56 +0000 (05:52 +0000)
With this we compare pointers, not numbers

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Mon Dec  2 05:52:56 UTC 2024 on atb-devel-224

libcli/security/claims-conversions.c

index 50b21f3085b1599170ab946a7265e168e7180d84..6983cb36f062a793e0c06212e62f977b1233c0bc 100644 (file)
@@ -135,7 +135,7 @@ static bool blob_string_sid_to_sid(DATA_BLOB *blob,
                return false;
        }
 
-       if (end - str != len) {
+       if (str + len != end) {
                return false;
        }
        return true;