git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@598 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/06/10 00:51:10... | ... |
@@ -1,3 +1,9 @@ |
1 |
+Wed Jun 9 17:47:29 CEST 2004 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamd: do not display "Command parser: read() failed." (in SESSION mode) |
|
4 |
+ if the client disconnescts (problem reported by Matthew Trent |
|
5 |
+ <mtrent*localaccess.com> and Omer Faruk Sen <ofsen*enderunix.org>) |
|
6 |
+ |
|
1 | 7 |
Tue Jun 8 22:46:29 BST 2004 (njh) |
2 | 8 |
---------------------------------- |
3 | 9 |
* clamav-milter: Ensure --from always takes an argument |
... | ... |
@@ -85,7 +85,10 @@ int command(int desc, const struct cl_node *root, const struct cl_limits *limits |
85 | 85 |
|
86 | 86 |
while((bread = read(desc, buff, 1024)) == -1 && errno == EINTR); |
87 | 87 |
|
88 |
- if(bread <= 0) { |
|
88 |
+ if(!bread) |
|
89 |
+ return 0; |
|
90 |
+ |
|
91 |
+ if(bread < 0) { |
|
89 | 92 |
logg("!Command parser: read() failed.\n"); |
90 | 93 |
/* at least try to display this error message */ |
91 | 94 |
/* mdprintf(desc, "ERROR: Command parser: read() failed.\n"); */ |