mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user