mirror of
https://github.com/jedisct1/dnsblast.git
synced 2025-01-18 12:05:35 +00:00
Fix encode_name()
This commit is contained in:
parent
47f4d22f15
commit
d84dce117e
@ -55,7 +55,7 @@ encode_name(unsigned char ** const encoded_ptr, size_t encoded_size,
|
||||
assert(encoded_size > (size_t) 0U);
|
||||
encoded_size--;
|
||||
for (;;) {
|
||||
name_current_pos = find_name_component_len(name);
|
||||
name_current_pos = find_name_component_len(name_current);
|
||||
if (name_current_pos == EOF ||
|
||||
encoded_size <= (size_t) name_current_pos) {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user