summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-01-14 11:34:04 -0800
committerKarolin Seeger <kseeger@samba.org>2010-02-24 16:25:09 +0100
commite07bdeda53353597787183131cbe44eeeac5ec15 (patch)
treefb911bd878ddcf7504798a624b27233b0cb551f5
parent2e6435952779134614c2a8adbfffb83eff5bd96e (diff)
downloadsamba-e07bdeda53353597787183131cbe44eeeac5ec15.tar.gz
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 Fix bug #7043 (SIGSEGV in "SMBC_parse_path"). (cherry picked from commit 07263901632bb98851d86dc0ba1d2dc22735c020)
-rw-r--r--source/libsmb/libsmb_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/libsmb_path.c b/source/libsmb/libsmb_path.c
index 3ea03446d89..0a54db49af5 100644
--- a/source/libsmb/libsmb_path.c
+++ b/source/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;
}