1
0
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:
Günther Deschner
2010-01-14 19:34:26 +01:00
parent d95ad11bc5
commit e635b0074c

View File

@ -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;
}