close connection when we see invalid command in IDSESSIOn

git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4680 77e5149b-7576-45b1-b177-96237e5ba77b
0.95
Török Edvin 17 years ago
parent 54c1f41b34
commit 428efe72d4
  1. 5
      ChangeLog
  2. 1
      clamd/session.c

@ -1,3 +1,8 @@
Thu Feb 5 17:21:00 EET 2009 (edwin)
------------------------------------
* clamd/session.c: close connection when we see invalid command in
IDSESSIOn
Thu Feb 5 16:48:32 EET 2009 (edwin)
------------------------------------
* clamd/scanner.c, clamd/scanner.h, clamd/server-th.c,

@ -342,6 +342,7 @@ int execute_or_dispatch_command(client_conn_t *conn, enum commands cmd, const ch
default:
/* these commands are not recognized inside an IDSESSION */
conn_reply_error(conn, "Command invalid inside IDSESSION.");
conn->group = NULL;
return 1;
}
}

Loading…
Cancel
Save