Bug 2434

Summary: Crash in clamd_create_config_automatic at clamd-plugin.c:213
Product: Claws Mail (GTK 2) Reporter: Michael Schwendt <mschwendt>
Component: Plugins/ClamAVAssignee: users
Status: RESOLVED FIXED    
Severity: normal CC: andreas.bierfert
Priority: P3    
Version: 3.7.9   
Hardware: PC   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=706322

Description Michael Schwendt 2011-05-20 10:31:29 UTC
http://bugzilla.redhat.com/706322
Backtrace: http://bugzilla.redhat.com/attachment.cgi?id=499998

--- clamd-plugin.c~	2010-10-10 09:25:16.000000000 +0200
+++ clamd-plugin.c	2011-05-20 10:24:37.871542717 +0200
@@ -210,7 +210,7 @@
 		}
 	}
 	fclose(conf);
-	if (! Socket && (Socket->socket.port || Socket->socket.path)) {
+	if (! (Socket && (Socket->socket.port || Socket->socket.path))) {
 		/*g_error("%s: Not able to find required information", path);*/
 		alertpanel_error(_("%s: Not able to find required information\nclamd will be disabled"), path);
 	}
Comment 1 Michael Rasmussen 2011-05-20 11:22:34 UTC
Thank's for the report and the patch. Patch has been applied to CVS.