From 6835881e803548e0447912068c46aca13dfd68b5 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Fri, 13 Jan 2017 10:18:29 +0100 Subject: [PATCH] Ignore case in OACK packets --- tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tftp.c b/tftp.c index 841037f..181fdd4 100644 --- a/tftp.c +++ b/tftp.c @@ -111,7 +111,7 @@ static char *pkt_optval(char* pkt, const char* name) pkt += 2; while (pkt_nextopt(&pkt, &opt, &val, &rem)) { - if (!strcmp(name, opt)) { + if (!strcasecmp(name, opt)) { return val; } } -- 2.25.1