Skip to content

Commit

Permalink
Fix: Return the correct error message, when wrong severity input is s…
Browse files Browse the repository at this point in the history
…end to overrides (#1843)
  • Loading branch information
y0urself authored Jun 14, 2022
1 parent dfbd9ce commit 1a96ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -37048,7 +37048,7 @@ create_override (const char* active, const char* nvt, const char* text,
&& new_severity_dbl != SEVERITY_FP))
{
g_free (quoted_severity);
return 2;
return 3;
}
}
else if (new_threat != NULL && strcmp (new_threat, ""))
Expand Down

0 comments on commit 1a96ac5

Please sign in to comment.