handle_trans2qfilepathinfo_result() only used "fixed_portion" for an
error check. Move that check to the only caller where both arguments
in the comparison are different.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
NTSTATUS status,
char *pdata,
int data_return_size,
- size_t fixed_portion,
unsigned int max_data_bytes)
{
char params[2] = { 0, 0, };
return;
}
- if (fixed_portion > max_data_bytes) {
- reply_nterror(req, NT_STATUS_INFO_LENGTH_MISMATCH);
- return;
- }
-
send_trans2_replies(
conn,
req,
&fixed_portion,
ppdata, &data_size);
+ if (fixed_portion > max_data_bytes) {
+ reply_nterror(req, NT_STATUS_INFO_LENGTH_MISMATCH);
+ return;
+ }
+
handle_trans2qfilepathinfo_result(
conn,
req,
status,
*ppdata,
data_size,
- fixed_portion,
max_data_bytes);
}
status,
*ppdata,
total_data,
- total_data,
max_data_bytes);
return;
}
status,
*ppdata,
total_data,
- total_data,
max_data_bytes);
return;
}