Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix long standing issue in this code from 2002
  • Loading branch information
Sam Trenholme committed May 2, 2023
1 parent 20b7ac0 commit bab062b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dns/Decompress.c
@@ -1,4 +1,4 @@
/* Copyright (c) 2002-2006 Sam Trenholme
/* Copyright (c) 2002-2023 Sam Trenholme
*
* TERMS
*
Expand Down Expand Up @@ -884,7 +884,7 @@ int decomp_get_rddata(js_string *compressed, js_string *out,
/* Variable length data (length determined by rdlength) */
else if(subtype == RRSUB_VARIABLE) {
len = rdlength - total;
if(len == 0) {
if(len <= 0) {
break;
}
if(decomp_append_bytes(compressed,out,
Expand Down

0 comments on commit bab062b

Please sign in to comment.