Browse code

fix mixed statements (bb #1269)

git-svn: trunk@4326

Török Edvin authored on 2008/11/04 17:58:51
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue Nov  4 11:29:23 EET 2008 (edwin)
2
+------------------------------------
3
+ * clamd/session.c: fix mixed statements (bb #1269)
4
+
1 5
 Tue Nov  4 11:28:09 EET 2008 (edwin)
2 6
 ------------------------------------
3 7
  * clamd/thrmgr.c: use mdprintf instead of fdopen on socket (bb
... ...
@@ -158,12 +158,11 @@ int command(int desc, const struct cl_engine *engine, const struct cl_limits *li
158 158
 		return COMMAND_SHUTDOWN;
159 159
 
160 160
     } else if(!strncmp(buff, CMD7, strlen(CMD7))) { /* VERSION */
161
-	thrmgr_setactivetask(NULL, CMD7);
162 161
 	    const char *dbdir = cfgopt(copt, "DatabaseDirectory")->strarg;
163 162
 	    char *path;
164 163
 	    struct cl_cvd *daily;
165 164
 
166
-
165
+	thrmgr_setactivetask(NULL, CMD7);
167 166
 	if(!(path = malloc(strlen(dbdir) + 30))) {
168 167
 	    mdprintf(desc, "Memory allocation error - SHUTDOWN forced\n");
169 168
 	    return COMMAND_SHUTDOWN;