1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

libsmb: Align calls to SMBC_dlist_contains()

Everywhere else it's called as !SMBC_dlist_contains()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2020-02-21 22:31:06 +01:00 committed by Jeremy Allison
parent a4a96a90bf
commit c3a2cc9ba2

View File

@ -1232,9 +1232,7 @@ SMBC_readdirplus_ctx(SMBCCTX *context,
return NULL;
}
if (dir == NULL ||
SMBC_dlist_contains(context->internal->files,
dir) == 0) {
if (dir == NULL || !SMBC_dlist_contains(context->internal->files, dir)) {
DBG_ERR("Invalid dir in SMBC_readdirplus_ctx()\n");
TALLOC_FREE(frame);
errno = EBADF;
@ -1313,10 +1311,7 @@ const struct libsmb_file_info *SMBC_readdirplus2_ctx(SMBCCTX *context,
return NULL;
}
if (dir == NULL ||
SMBC_dlist_contains(context->internal->files,
dir) == 0)
{
if (dir == NULL || !SMBC_dlist_contains(context->internal->files, dir)) {
DBG_ERR("Invalid dir in SMBC_readdirplus2_ctx()\n");
TALLOC_FREE(frame);
errno = EBADF;