1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Terminate dfs referral alternate path string. DFS now works again in head

- hooray!
This commit is contained in:
Tim Potter 0001-01-01 00:00:00 +00:00
parent 6399cf490d
commit 95df7ede46

View File

@ -515,7 +515,7 @@ static int setup_ver3_dfs_referral(char* pathname, char** ppdata,
/* copy referred path into current offset */
unilen = rpcstr_push(pdata+uni_curroffset, ref->alternate_path,
-1, STR_UNICODE);
-1, STR_UNICODE|STR_TERMINATE);
SSVAL(pdata,offset+16,uni_curroffset-offset);
/* copy 0x10 bytes of 00's in the ServiceSite GUID */
memset(pdata+offset+18,'\0',16);