Skip to content

Commit 53a5dda

Browse files
authored
Merge pull request #6 from cystein/log-clamdscan-summary-output
Add DebugFlag and MaxAttach checks to clamdscan logging.
2 parents 9c5429a + c662560 commit 53a5dda

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

simscan.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,9 @@ int check_clam()
996996
InClamHeaders = 1;
997997
memset(buffer,0,sizeof(buffer));
998998
while((file_count=read(pim[0],buffer,BUFFER_SIZE))>0) {
999-
if ( DebugFlag > 2 ) log_clam(buffer) ;
999+
if ( DebugFlag > 1 && MaxAttach > 0){
1000+
log_clam(buffer);
1001+
}
10001002
if ( InClamHeaders == 1 ) {
10011003
is_clam(buffer);
10021004
}

0 commit comments

Comments
 (0)