mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-18 22:26:41 +08:00
introduce 'lwip_tolower' and use it in dns.c
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user