git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
979e392
)
s3: VFS: shadow_copy2: Fix length comparison to ensure we don't overstep a length.
author
Jeremy Allison
<jra@samba.org>
Fri, 20 Jan 2017 19:48:40 +0000
(11:48 -0800)
committer
Jeremy Allison
<jra@samba.org>
Mon, 30 Jan 2017 17:39:18 +0000
(18:39 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12531
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/modules/vfs_shadow_copy2.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_shadow_copy2.c
b/source3/modules/vfs_shadow_copy2.c
index 41d2a1fc875ff805e00d21b44149524efc67b8fd..6896a16353000107d5efed08dfd2cfe32e4d0082 100644
(file)
--- a/
source3/modules/vfs_shadow_copy2.c
+++ b/
source3/modules/vfs_shadow_copy2.c
@@
-2588,7
+2588,7
@@
static int shadow_copy2_connect(struct vfs_handle_struct *handle,
}
if (config->rel_connectpath == NULL &&
- strlen(basedir)
!=
strlen(handle->conn->connectpath)) {
+ strlen(basedir)
<
strlen(handle->conn->connectpath)) {
config->rel_connectpath = talloc_strdup(config,
handle->conn->connectpath + strlen(basedir));
if (config->rel_connectpath == NULL) {