mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
fix DNS resolution to not case insensitivity
See patch #9654 Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
8e23b8d903
commit
66f7f06601
@ -96,6 +96,7 @@
|
||||
#include "lwip/prot/dns.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
/** Random generator function to create random TXIDs and source ports for queries */
|
||||
#ifndef DNS_RAND_TXID
|
||||
@ -666,7 +667,7 @@ dns_compare_name(const char *query, struct pbuf *p, u16_t start_offset)
|
||||
if (c < 0) {
|
||||
return 0xFFFF;
|
||||
}
|
||||
if ((*query) != (u8_t)c) {
|
||||
if (tolower((*query)) != tolower((u8_t)c)) {
|
||||
return 0xFFFF;
|
||||
}
|
||||
if (response_offset == 0xFFFF) {
|
||||
|
Loading…
Reference in New Issue
Block a user