spamassassin: Fix "Insecure dependency" error from ClamAV plugin.

This commit is contained in:
Timo Makinen 2016-02-24 15:02:58 +02:00
parent 89e1dad9d8
commit 7c03ae1f0e

View file

@ -78,7 +78,7 @@ sub check_clamav {
my $socket = IO::Socket::UNIX->new(
Type => SOCK_STREAM,
Peer => $self->{main}->{conf}->{clamav_socket}
Peer => Mail::SpamAssassin::Util::untaint_file_path($permsg->{conf}->{clamav_socket})
) or do {
$permsg->set_tag("CLAMAV", "Error");
info("ClamAV: Failed to connect socket, skipping virus check");