cli_caloff: offset_max was not set in some cases

0.96
Tomasz Kojm 16 years ago
parent 389adb9e99
commit fbc33106bc
  1. 8
      libclamav/matcher.c

@ -277,8 +277,12 @@ int cli_caloff(const char *offstr, struct cli_target_info *info, int fd, unsigne
return CL_EARG; return CL_EARG;
} }
if(offset_max && *offset_min != CLI_OFF_NONE) if(offset_max) {
*offset_max = *offset_min + offdata[2]; if(*offset_min != CLI_OFF_NONE)
*offset_max = *offset_min + offdata[2];
else
*offset_max = CLI_OFF_NONE;
}
} }
return CL_SUCCESS; return CL_SUCCESS;

Loading…
Cancel
Save