This commit is contained in:
Willem Toorop 2017-09-20 15:18:43 +02:00
parent 36943a4380
commit e6536bb2ef
1 changed files with 4 additions and 3 deletions

View File

@ -4835,10 +4835,11 @@ getdns_context_set_trust_anchor_url(
return GETDNS_RETURN_NOT_IMPLEMENTED;
path_len = strlen(path);
if (! ( path_len >= 4
if (! ( path_len >= 5
&& path[path_len - 4] == '.'
&& (path[path_len - 3] == 'x' || path[path_len - 3] == 'X')
&& (path[path_len - 2] == 'm' || path[path_len - 2] == 'm')
&& (path[path_len - 1] == 'l' || path[path_len - 1] == 'l')))
&& (path[path_len - 2] == 'm' || path[path_len - 2] == 'M')
&& (path[path_len - 1] == 'l' || path[path_len - 1] == 'L')))
return GETDNS_RETURN_NOT_IMPLEMENTED;
context->root_anchor_url = url;