Skip to content

Commit bab062b

Browse files
author
Sam Trenholme
committed
Fix long standing issue in this code from 2002
1 parent 20b7ac0 commit bab062b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: dns/Decompress.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2002-2006 Sam Trenholme
1+
/* Copyright (c) 2002-2023 Sam Trenholme
22
*
33
* TERMS
44
*
@@ -884,7 +884,7 @@ int decomp_get_rddata(js_string *compressed, js_string *out,
884884
/* Variable length data (length determined by rdlength) */
885885
else if(subtype == RRSUB_VARIABLE) {
886886
len = rdlength - total;
887-
if(len == 0) {
887+
if(len <= 0) {
888888
break;
889889
}
890890
if(decomp_append_bytes(compressed,out,

0 commit comments

Comments
 (0)