From d6939c39c0fc9b6946c1ab6f58f07de1bfddbb65 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 28 Jun 2012 12:22:07 +0200 Subject: s3:smbd: change nt_open_pipe() to uint16_t pnum/fnum This is SMB1 code... metze Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Jun 28 14:47:45 CEST 2012 on sn-devel-104 --- source3/smbd/nttrans.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd') 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; -- cgit