]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:utils: Remove condition that cannot be true (CID 1548341)
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 30 Oct 2023 22:30:27 +0000 (11:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 2 Nov 2023 03:08:37 +0000 (03:08 +0000)
‘limit’ is an unsigned integer, and thus will never be less than zero.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/wspsearch.c

index d2235fa8193ede28a14093c1bd09df29519c312b..2c56c97736b9a4eb8b76520471689970e0e07fc9 100644 (file)
@@ -618,7 +618,7 @@ int main(int argc, char **argv)
        }
 
        path = talloc_strdup(talloc_tos(), poptGetArg(pc));
-       if (!path || limit < 0) {
+       if (!path) {
                DBG_ERR("Invalid argument\n");
                result = -1;
                goto out;