git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af6bd05
)
s3/client/clitar.c: NULL-check correct variable
author
Aurelien Aptel
<aaptel@suse.com>
Tue, 31 May 2016 13:44:27 +0000
(15:44 +0200)
committer
Jeremy Allison
<jra@samba.org>
Tue, 31 May 2016 22:57:32 +0000
(
00:57
+0200)
`f` was checked again instead of `s`.
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: ndreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/client/clitar.c
patch
|
blob
|
history
diff --git
a/source3/client/clitar.c
b/source3/client/clitar.c
index 8703f6b9a746585d6af7458825343bad42c306e0..188f65da9f47699f53a0a1b1a88814ac1033729d 100644
(file)
--- 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;
}