summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-28 12:22:07 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-28 14:47:45 +0200
commitd6939c39c0fc9b6946c1ab6f58f07de1bfddbb65 (patch)
treef7b3b992b4afbbdf51231aff6295bf6ad265c201 /source3
parentd7d1bb9444ab89c2fd922a8120eb5b21d06d0c54 (diff)
downloadsamba-d6939c39c0fc9b6946c1ab6f58f07de1bfddbb65.tar.gz
samba-d6939c39c0fc9b6946c1ab6f58f07de1bfddbb65.tar.bz2
samba-d6939c39c0fc9b6946c1ab6f58f07de1bfddbb65.zip
s3:smbd: change nt_open_pipe() to uint16_t pnum/fnum
This is SMB1 code... metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 28 14:47:45 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/nttrans.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 2b426b4d9c..0cac3a14ec 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -279,7 +279,7 @@ static void send_nt_replies(connection_struct *conn,
****************************************************************************/
static void nt_open_pipe(char *fname, connection_struct *conn,
- struct smb_request *req, int *ppnum)
+ struct smb_request *req, uint16_t *ppnum)
{
files_struct *fsp;
NTSTATUS status;
@@ -314,7 +314,7 @@ static void do_ntcreate_pipe_open(connection_struct *conn,
struct smb_request *req)
{
char *fname = NULL;
- int pnum = -1;
+ uint16_t pnum = FNUM_FIELD_INVALID;
char *p = NULL;
uint32 flags = IVAL(req->vwv+3, 1);
TALLOC_CTX *ctx = talloc_tos();
@@ -746,7 +746,7 @@ static void do_nt_transact_create_pipe(connection_struct *conn,
{
char *fname = NULL;
char *params = *ppparams;
- int pnum = -1;
+ uint16_t pnum = FNUM_FIELD_INVALID;
char *p = NULL;
NTSTATUS status;
size_t param_len;