1
0
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:
Frank Denis 2012-05-14 19:57:47 -07:00
parent 47f4d22f15
commit d84dce117e

View File

@ -55,7 +55,7 @@ encode_name(unsigned char ** const encoded_ptr, size_t encoded_size,
assert(encoded_size > (size_t) 0U); assert(encoded_size > (size_t) 0U);
encoded_size--; encoded_size--;
for (;;) { for (;;) {
name_current_pos = find_name_component_len(name); name_current_pos = find_name_component_len(name_current);
if (name_current_pos == EOF || if (name_current_pos == EOF ||
encoded_size <= (size_t) name_current_pos) { encoded_size <= (size_t) name_current_pos) {
return -1; return -1;