Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05432e29 authored by Ronnie Sahlberg's avatar Ronnie Sahlberg Committed by Steve French
Browse files

cifs: remove rfc1002 hardcoded constants from cifs_discard_remaining_data()

parent 91cb74f5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1418,8 +1418,9 @@ CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock,
int
cifs_discard_remaining_data(struct TCP_Server_Info *server)
{
	unsigned int rfclen = get_rfc1002_length(server->smallbuf);
	int remaining = rfclen + 4 - server->total_read;
	unsigned int rfclen = server->pdu_size;
	int remaining = rfclen + server->vals->header_preamble_size -
		server->total_read;

	while (remaining > 0) {
		int length;