Browse code

shutdown conn->sd when exiting scanner_thread() (bb#674)

git-svn: trunk@3274

Tomasz Kojm authored on 2007/10/06 09:10:16
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat Oct  6 01:10:40 CEST 2007 (tk)
2
+----------------------------------
3
+  * clamd/server-th.c: shutdown conn->sd when exiting scanner_thread() (bb#674)
4
+
1 5
 Sat Oct  6 00:50:05 CEST 2007 (tk)
2 6
 ----------------------------------
3 7
   * clamscan, clamd: better error checking/reporting (bb#657)
... ...
@@ -146,6 +146,7 @@ static void scanner_thread(void *arg)
146 146
 	}
147 147
     } while (session);
148 148
 
149
+    shutdown(conn->sd, 2);
149 150
     closesocket(conn->sd);
150 151
     cl_free(conn->engine);
151 152
     free(conn);