Skip to content

Commit

Permalink
Fix prefs key in nvticache_delete().
Browse files Browse the repository at this point in the history
  • Loading branch information
kroosec authored and jjnicola committed Apr 10, 2019
1 parent b231907 commit 3f82336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/nvticache.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ nvticache_delete (const char *oid)
assert (oid);

filename = nvticache_get_filename (oid);
g_snprintf (pattern, sizeof (pattern), "prefs:%s", oid);
g_snprintf (pattern, sizeof (pattern), "oid:%s:prefs", oid);
kb_del_items (cache_kb, pattern);
g_snprintf (pattern, sizeof (pattern), "nvt:%s", oid);
kb_del_items (cache_kb, pattern);
Expand Down

0 comments on commit 3f82336

Please # to comment.