Skip to content

Commit

Permalink
tftp: use the current blksize for recvfrom()
Browse files Browse the repository at this point in the history
bug: https://curl.haxx.se/docs/CVE-2019-5436.html
Reported-by: l00p3r on hackerone
CVE-2019-5436
  • Loading branch information
bagder committed May 20, 2019
1 parent 9a87fe7 commit 2576003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tftp.c
Expand Up @@ -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 =
Expand Down

0 comments on commit 2576003

Please sign in to comment.