s3-dfs: removed the last user of sec_len==-1 in pull_*_base_talloc()
authorAndrew Tridgell <tridge@samba.org>
Thu, 24 Mar 2011 02:00:37 +0000 (13:00 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 25 Mar 2011 03:37:06 +0000 (04:37 +0100)
hopefully there aren't any others lurking in the code

source3/libsmb/clidfs.c

index c6fe67f16abcf1a985a6a7b89c11fc1beadbd63c..957bf4d707ccd913870eab45451c74c13e9c5066 100644 (file)
@@ -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) {