git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4702 77e5149b-7576-45b1-b177-96237e5ba77b
remotes/push_mirror/0.95
aCaB 17 years ago
parent fadd3046fc
commit 228d7e1929
  1. 3
      clamdscan/client.c
  2. 2
      clamdscan/proto.c

@ -256,7 +256,7 @@ int client(const struct optstruct *opts, int *infected)
{
const char *clamd_conf = optget(opts, "config-file")->strarg;
struct optstruct *clamdopts;
int remote, scantype, session = 0, errors = 0, scandash = 0, maxrec;
int remote, scantype, session = 0, errors = 0, scandash = 0, maxrec, maxstream;
if((clamdopts = optparse(clamd_conf, 0, NULL, 1, OPT_CLAMD, 0, NULL)) == NULL) {
logg("!Can't parse clamd configuration file %s\n", clamd_conf);
@ -278,6 +278,7 @@ int client(const struct optstruct *opts, int *infected)
else scantype = CONT;
maxrec = optget(clamdopts, "MaxDirectoryRecursion")->numarg;
maxstream = optget(opts, "StreamMaxLength")->numarg; /* FIXME: propagate */
optfree(clamdopts);
if(!mainsa) {

@ -151,7 +151,7 @@ static int send_stream(int sockd, const char *filename) {
int fd, len;
if(filename) {
if(!(fd = open(filename, O_RDONLY))) {
if((fd = open(filename, O_RDONLY))<0) {
logg("!Open failed on %s.\n", filename);
return 1;
}

Loading…
Cancel
Save