introduce 'lwip_tolower' and use it in dns.c

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Simon Goldschmidt
2018-06-13 15:08:11 +02:00
parent 66f7f06601
commit a9d6ea5953
2 changed files with 4 additions and 2 deletions

View File

@@ -96,7 +96,6 @@
#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
@@ -667,7 +666,7 @@ dns_compare_name(const char *query, struct pbuf *p, u16_t start_offset)
if (c < 0) {
return 0xFFFF;
}
if (tolower((*query)) != tolower((u8_t)c)) {
if (lwip_tolower((*query)) != lwip_tolower((u8_t)c)) {
return 0xFFFF;
}
if (response_offset == 0xFFFF) {