Skip to content

Commit 004a5bf

Browse files
committed
fix infitite looping in resolver
...this time for real ...hopefully :) fixup of 870f217 Signed-off-by: Steffen Jaeckel <[email protected]>
1 parent e9bd063 commit 004a5bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static unsigned message_name_get(const unsigned char *buf,
322322
return 0;
323323
pointer = (label_len & 0x3f) << 8 | buf[i++];
324324
/* Prevent infinite looping */
325-
if (pointer == buf_offset)
325+
if (pointer >= buf_offset)
326326
return 0;
327327
if (name != NULL && name_len >= name_max && name_max > 0) {
328328
/* We have filled the name buffer. Don't pass it recursively. */

0 commit comments

Comments
 (0)