summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
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
commit4ddd288f9a8abc63abe133dd41ad30bcb01ad64e (patch)
tree2ec72bd02ae063c100bf4de83152a1096ee39e9d /source3/smbd/trans2.c
parentb6b6b0c691543fa24442edaabdab3a347a53a6de (diff)
downloadsamba-4ddd288f9a8abc63abe133dd41ad30bcb01ad64e.tar.gz
samba-4ddd288f9a8abc63abe133dd41ad30bcb01ad64e.tar.bz2
samba-4ddd288f9a8abc63abe133dd41ad30bcb01ad64e.zip
check for empty parameters in qpathinfo
(This used to be commit c78b16c1f850562b65acb6143e55b1aefc075753)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 86c6252297..6a089cc429 100644
--- a/source3/smbd/trans2.c
+++ b/source3/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);