git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@714 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/08/02 19:41:30... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Mon Aug 2 12:28:31 CEST 2004 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamd: scanstream: protect access to static memory referenced by |
|
4 |
+ gethostbyname (thanks to David Champion <dgc*uchicago.edu>) |
|
5 |
+ |
|
1 | 6 |
Sun Aug 1 09:21:50 BST 2004 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/blob.c: Ensure attachments with pathnames are scanned under |
... | ... |
@@ -249,8 +249,8 @@ int scanstream(int odesc, unsigned long int *scanned, const struct cl_node *root |
249 | 249 |
pthread_mutex_unlock(&gh_mutex); |
250 | 250 |
return -1; |
251 | 251 |
} |
252 |
- pthread_mutex_unlock(&gh_mutex); |
|
253 | 252 |
server.sin_addr = *(struct in_addr *) he->h_addr_list[0]; |
253 |
+ pthread_mutex_unlock(&gh_mutex); |
|
254 | 254 |
} else |
255 | 255 |
server.sin_addr.s_addr = INADDR_ANY; |
256 | 256 |
|