Skip to content

Commit

Permalink
Use severity column in ovaldef_severity
Browse files Browse the repository at this point in the history
The function was still trying to use the score column that was replaced
by severity.
  • Loading branch information
timopollmeier committed Apr 8, 2021
1 parent 1bd118a commit 1a82bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ ovaldef_severity (const char *id)

assert (id);
quoted_id = sql_quote (id);
ret = sql_string ("SELECT score / 10.0 FROM ovaldefs WHERE uuid = '%s';",
ret = sql_string ("SELECT severity FROM ovaldefs WHERE uuid = '%s';",
quoted_id);
g_free (quoted_id);
return ret;
Expand Down

0 comments on commit 1a82bb7

Please sign in to comment.