From 544d0cf82988e270dbf91e0d3ee18efcbb452567 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 13 Sep 2001 00:30:16 +0000 Subject: Terminate dfs referral alternate path string. DFS now works again in head - hooray! (This used to be commit 95df7ede465d835eb8ca1d1466c5153caf1a0d71) --- source3/msdfs/msdfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/msdfs') diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c index 8417474ed2..51d60608a2 100644 --- a/source3/msdfs/msdfs.c +++ b/source3/msdfs/msdfs.c @@ -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); -- cgit