Improve clamav protocol:
- Add start/end a clamd session
Hope it can help you.
Debrard Sébastien
Le ven 25/08/2006 à 18:33, Jan-Henrik Haukeland a écrit :
> Thank you very much! I took the liberty to check-in this patch
> directly since it is a straightforward protocol test.
Index: protocols/clamav.c
===================================================================
RCS file: /sources/monit/monit/protocols/clamav.c,v
retrieving revision 1.1
diff -r1.1 clamav.c
56a57,61
> if(socket_print(s, "SESSION\r\n") < 0) {
> LogError("CLAMAV: error sending data -- %s\n", STRERROR);
> return FALSE;
> }
>
72a78,82
>
> if(socket_print(s, "END\r\n") < 0) {
> LogError("CLAMAV: error sending data -- %s\n", STRERROR);
> return FALSE;
> }
_______________________________________________
monit-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monit-dev