Skip to content

Commit

Permalink
Update clamd/server-th.c
Browse files Browse the repository at this point in the history
Co-authored-by: Micah Snyder <[email protected]>
  • Loading branch information
ragusaa and micahsnyder committed Jun 28, 2024
1 parent 8b83ab4 commit ac78ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clamd/server-th.c
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ int recvloop(int *socketds, unsigned nsockets, struct cl_engine *engine, unsigne
#endif

if ((opt = optget(opts, "MaxRecursion"))->active) {
if ((0 == opt->numarg) || (opt->numarg > CLI_MAX_MAXRECLEVEL)){
if ((0 == opt->numarg) || (opt->numarg > CLI_MAX_MAXRECLEVEL)) {
logg(LOGG_ERROR, "MaxRecursion set to %zu, but cannot be larger than %u, and cannot be 0.\n",
(size_t) opt->numarg, CLI_MAX_MAXRECLEVEL);
cl_engine_free(engine);
Expand Down

0 comments on commit ac78ae8

Please sign in to comment.