Skip to content
Snippets Groups Projects
Commit facf1a60 authored by Sergei Gavrikov's avatar Sergei Gavrikov Committed by Edgar E. Iglesias
Browse files

slirp: Use strcasecmp() to check tftp mode, tsize


According to RFC 1350 (TFTP Revision 2) the mode field can contain any
combination of upper and lower case; also RFC 2349 propagates that the
transfer size option ("tsize") is case in-sensitive too.

Current implementation of embedded TFTP server missed that what does
mess some TFTP clients. Fixed by using STRCASECMP(3) in the required
places.

Signed-off-by: default avatarSergei Gavrikov <sergei.gavrikov@gmail.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: default avatarEdgar E. Iglesias <edgar@axis.com>
parent 4508d81a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment