clamdscan side of bb#1429

git-svn: trunk@4872
0.95
aCaB 16 years ago
parent 532f0426cd
commit 5ad17a134e
  1. 4
      ChangeLog
  2. 9
      clamdscan/proto.c

@ -1,3 +1,7 @@
Sat Feb 28 09:04:22 CET 2009 (acab)
-----------------------------------
* clamdscan/proto.c: bail out if the command is rejected (bb#1429)
Thu Feb 26 10:09:21 CET 2009 (acab)
-----------------------------------
* shared/misc.h: check for in_addr_t (bb#1426)

@ -28,6 +28,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@ -114,7 +115,13 @@ int recvln(struct RCVLN *s, char **rbol, char **reol) {
continue;
}
if(s->r || s->cur!=s->buf) {
logg("!Communication error\n");
*s->cur = '\0';
if(strcmp(s->buf, "UNKNOWN COMMAND\n"))
logg("!Communication error\n");
else {
logg("!Command rejected by clamd (wrong clamd version?)\n");
exit(2);
}
return -1;
}
*rbol = NULL;

Loading…
Cancel
Save