Skip to content

Commit

Permalink
s3/client/clitar.c: NULL-check correct variable
Browse files Browse the repository at this point in the history
`f` was checked again instead of `s`.

Signed-off-by: Aurelien Aptel <[email protected]>
Reviewed-by: ndreas Schneider <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
aaptel authored and jrasamba committed May 31, 2016
1 parent af6bd05 commit 4feffb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source3/client/clitar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4feffb6

Please sign in to comment.