summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmb_path.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-01-14 19:34:26 +0100
committerGünther Deschner <gd@samba.org>2010-01-14 19:48:33 +0100
commite635b0074c55e0376495abe940355aa7b04f0b70 (patch)
tree9a674ab8b6499c30be9b2d7407967451b2fd9a98 /source3/libsmb/libsmb_path.c
parentd95ad11bc583c99f9bf8faeac7935880da19684b (diff)
downloadsamba-e635b0074c55e0376495abe940355aa7b04f0b70.tar.gz
samba-e635b0074c55e0376495abe940355aa7b04f0b70.tar.bz2
samba-e635b0074c55e0376495abe940355aa7b04f0b70.zip
s3-libsmbclient: Fix crash bug in SMBC_parse_path().
Patch from Tim Waugh <twaugh@redhat.com>. This resolves https://bugzilla.redhat.com/show_bug.cgi?id=552658 LIBSMBCLIENT-OPENDIR torture test checks this as well. Guenther
Diffstat (limited to 'source3/libsmb/libsmb_path.c')
-rw-r--r--source3/libsmb/libsmb_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/libsmb_path.c b/source3/libsmb/libsmb_path.c
index 9d2eafc8d7..64a956d9ee 100644
--- a/source3/libsmb/libsmb_path.c
+++ b/source3/libsmb/libsmb_path.c
@@ -308,7 +308,7 @@ SMBC_parse_path(TALLOC_CTX *ctx,
if (!*pp_server) {
return -1;
}
- *pp_server[wl] = '\0';
+ (*pp_server)[wl] = '\0';
return 0;
}