git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
918045b
)
s3-libsmbclient: Fix crash bug in SMBC_parse_path().
author
Günther Deschner
<gd@samba.org>
Thu, 14 Jan 2010 18:34:26 +0000
(19:34 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Fri, 15 Jan 2010 11:10:42 +0000
(12:10 +0100)
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
(cherry picked from commit
e635b0074c55e0376495abe940355aa7b04f0b70
)
Fix bug #7043 (SIGSEGV in "SMBC_parse_path").
source3/libsmb/libsmb_path.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/libsmb_path.c
b/source3/libsmb/libsmb_path.c
index 6a59a12ed06648d87ff7013bbaba79497c17aa00..511d54ebdc05d3245de0fb5d681f14aa56eb498e 100644
(file)
--- 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;
}