fix infitite looping in resolver
...this time for real ...hopefully :)
fixup of 870f2174d5
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -322,7 +322,7 @@ static unsigned message_name_get(const unsigned char *buf,
|
||||
return 0;
|
||||
pointer = (label_len & 0x3f) << 8 | buf[i++];
|
||||
/* Prevent infinite looping */
|
||||
if (pointer == buf_offset)
|
||||
if (pointer >= buf_offset)
|
||||
return 0;
|
||||
if (name != NULL && name_len >= name_max && name_max > 0) {
|
||||
/* We have filled the name buffer. Don't pass it recursively. */
|
||||
|
||||
Reference in New Issue
Block a user