summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-02-05 01:31:16 +0000
committerAndrew Tridgell <tridge@samba.org>2002-02-05 01:31:16 +0000
commitc78b16c1f850562b65acb6143e55b1aefc075753 (patch)
treeca432fdbdf1458b29d982fb1fe64fd098ba7b38a /source
parente72c6fb36ebd3ea8fc6b6d8e1b1a9ff1ccb3ade9 (diff)
downloadsamba-c78b16c1f850562b65acb6143e55b1aefc075753.tar.gz
samba-c78b16c1f850562b65acb6143e55b1aefc075753.tar.xz
samba-c78b16c1f850562b65acb6143e55b1aefc075753.zip
check for empty parameters in qpathinfo
Diffstat (limited to 'source')
-rw-r--r--source/smbd/trans2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 86c6252297d..6a089cc429b 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -1440,6 +1440,10 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
int len;
time_t c_time;
+ if (!params) {
+ return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
+ }
+
if (tran_call == TRANSACT2_QFILEINFO) {
files_struct *fsp = file_fsp(params,0);
info_level = SVAL(params,2);