Browse code

mutex bugfix

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@452 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/03/30 01:01:17
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Mon Mar 29 18:11:08 CEST 2004 (tk)
2
+----------------------------------
3
+  * shared/output.c: don't try to unlock free mutex (bug reported
4
+		     by Nigel)
5
+
1 6
 Mon Mar 29 16:17:05 BST 2004 (trog)
2 7
 -----------------------------------
3 8
   * clamd: disable timeout when ReadTimeout=0
... ...
@@ -163,11 +163,11 @@ int logg(const char *str, ...)
163 163
 	va_end(args);
164 164
 
165 165
 	fflush(logg_fd);
166
-    }
167 166
 
168 167
 #ifdef CL_THREAD_SAFE
169
-    pthread_mutex_unlock(&logg_mutex);
168
+	pthread_mutex_unlock(&logg_mutex);
170 169
 #endif
170
+    }
171 171
 
172 172
 #if defined(USE_SYSLOG) && !defined(C_AIX)
173 173
     if(logg_syslog) {