mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 01:36:23 -04:00
evdns: fix randomize-case by make case-insensitive as required
Interesting that this wasn't found by regression tests since they respond with that SoME-rAndDom-CaSe domains, and no case-insensitive mode is required during comparing response from the server and request. Fixes #288 Covered-by: regress dns/search_lower
This commit is contained in:
parent
1e8bfbc6bc
commit
9c238deb76
2
evdns.c
2
evdns.c
@ -1076,7 +1076,7 @@ reply_parse(struct evdns_base *base, u8 *packet, int length) {
|
||||
if (name_parse(req->request, req->request_len, &k,
|
||||
cmp_name, sizeof(cmp_name))<0)
|
||||
goto err;
|
||||
if (base->global_randomize_case) {
|
||||
if (!base->global_randomize_case) {
|
||||
if (strcmp(tmp_name, cmp_name) == 0)
|
||||
name_matches = 1;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user