From: Aurelien Aptel Date: Tue, 31 May 2016 13:44:27 +0000 (+0200) Subject: s3/client/clitar.c: NULL-check correct variable X-Git-Tag: tdb-1.3.10~1042 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4feffb670720b7f378e5dc0914d928cf6e0ca6c6;p=thirdparty%2Fsamba.git s3/client/clitar.c: NULL-check correct variable `f` was checked again instead of `s`. Signed-off-by: Aurelien Aptel Reviewed-by: ndreas Schneider Reviewed-by: Jeremy Allison --- diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 8703f6b9a74..188f65da9f4 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -1510,7 +1510,7 @@ static NTSTATUS is_subpath(const char *sub, const char *full, } string_replace(f, '\\', '/'); s = strlower_talloc(tmp_ctx, sub); - if (f == NULL) { + if (s == NULL) { status = NT_STATUS_NO_MEMORY; goto out_ctx_free; }