mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 22:15:13 -05:00
tftp: use the current blksize for recvfrom()
bug: https://curl.haxx.se/docs/CVE-2019-5436.html Reported-by: l00p3r on hackerone CVE-2019-5436
This commit is contained in:
parent
9a87fe704e
commit
2576003415
@ -1009,7 +1009,7 @@ static CURLcode tftp_connect(struct connectdata *conn, bool *done)
|
||||
state->sockfd = state->conn->sock[FIRSTSOCKET];
|
||||
state->state = TFTP_STATE_START;
|
||||
state->error = TFTP_ERR_NONE;
|
||||
state->blksize = TFTP_BLKSIZE_DEFAULT;
|
||||
state->blksize = blksize;
|
||||
state->requested_blksize = blksize;
|
||||
|
||||
((struct sockaddr *)&state->local_addr)->sa_family =
|
||||
|
Loading…
Reference in New Issue
Block a user