summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-11-01 16:09:02 +0100
committerVolker Lendecke <vl@samba.org>2008-11-01 19:41:07 +0100
commit8637716b4b7b75a289e22141c5761c4850da3f5d (patch)
tree66adfb4294686fa9b1de85c0c625a2959dce13d2
parent7a0ed93169e2c274b5386d153e4265b018f39b74 (diff)
downloadsamba-8637716b4b7b75a289e22141c5761c4850da3f5d.tar.gz
samba-8637716b4b7b75a289e22141c5761c4850da3f5d.tar.bz2
samba-8637716b4b7b75a289e22141c5761c4850da3f5d.zip
Make use of smb_bufrem()
-rw-r--r--source3/libsmb/cliconnect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 6b4798e492..1588ae3efe 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -516,7 +516,7 @@ static DATA_BLOB cli_session_setup_blob_receive(struct cli_state *cli)
p += clistr_pull(cli, cli->server_os, p, sizeof(fstring), -1, STR_TERMINATE);
/* w2k with kerberos doesn't properly null terminate this field */
- len = smb_buflen(cli->inbuf) - PTR_DIFF(p, smb_buf(cli->inbuf));
+ len = smb_bufrem(cli->inbuf, p);
p += clistr_pull(cli, cli->server_type, p, sizeof(fstring), len, 0);
return blob2;