summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-16 11:38:24 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-24 19:02:30 +0100
commite2912fa853321461d9b0a24e5015e82e3f5a7c18 (patch)
treefa489b08fba6bdf06970e4a60bbd5d3e53a9d44d
parentfee3a0a657119bd17a86934c4a74bece25cf59b8 (diff)
downloadsamba-e2912fa853321461d9b0a24e5015e82e3f5a7c18.tar.gz
samba-e2912fa853321461d9b0a24e5015e82e3f5a7c18.tar.bz2
samba-e2912fa853321461d9b0a24e5015e82e3f5a7c18.zip
smbXcli: remove unused smb1cli_have_andx_command()
metze
-rw-r--r--libcli/smb/smbXcli_base.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index ddc1158a45..302f6d219d 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -382,38 +382,6 @@ static NTSTATUS smb1cli_pull_raw_error(const uint8_t *hdr)
}
/**
- * Figure out if there is an andx command behind the current one
- * @param[in] buf The smb buffer to look at
- * @param[in] ofs The offset to the wct field that is followed by the cmd
- * @retval Is there a command following?
- */
-
-static bool smb1cli_have_andx_command(const uint8_t *buf,
- uint16_t ofs,
- uint8_t cmd)
-{
- uint8_t wct;
- size_t buflen = talloc_get_size(buf);
-
- if (!smb1cli_is_andx_req(cmd)) {
- return false;
- }
-
- if ((ofs == buflen-1) || (ofs == buflen)) {
- return false;
- }
-
- wct = CVAL(buf, ofs);
- if (wct < 2) {
- /*
- * Not enough space for the command and a following pointer
- */
- return false;
- }
- return (CVAL(buf, ofs+1) != 0xff);
-}
-
-/**
* Is the SMB command able to hold an AND_X successor
* @param[in] cmd The SMB command in question
* @retval Can we add a chained request after "cmd"?