commit 4f9c021852d069ba9281e60920887cb06083c8ae parent ead53a765056e1732329020ef61c0470e09a6d0a Author: Michael Rasmussen <mir@datanom.net> Date: Thu, 9 Sep 2021 23:34:52 +0200 Fix CID 1491377 Signed-off-by: Michael Rasmussen <mir@datanom.net> Diffstat:
| M | src/plugins/clamd/clamav_plugin.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/plugins/clamd/clamav_plugin.c b/src/plugins/clamd/clamav_plugin.c @@ -149,7 +149,8 @@ static gboolean scan_func(GNode *node, gpointer data) g_free(msg); } } - g_unlink(outfile); + if (g_unlink(outfile) < 0) + FILE_OP_ERROR(outfile, "g_unlink"); } return (result->status == OK) ? FALSE : TRUE;