From 4d47493368c0bdfa715814bf5736866a369f00f5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 24 Mar 2011 13:00:37 +1100 Subject: s3-dfs: removed the last user of sec_len==-1 in pull_*_base_talloc() hopefully there aren't any others lurking in the code --- source3/libsmb/clidfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index c6fe67f16a..957bf4d707 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -738,7 +738,8 @@ NTSTATUS cli_dfs_get_referral(TALLOC_CTX *ctx, clistr_pull_talloc(ctx, cli->inbuf, SVAL(cli->inbuf, smb_flg2), &referrals[i].dfspath, - p+node_offset, -1, + p+node_offset, + cli->bufsize - ((p+node_offset)-cli->inbuf), STR_TERMINATE|STR_UNICODE); if (!referrals[i].dfspath) { -- cgit