Browse code

db_cluster: enclose block in curly braces

- fix returning always introduced in previous commit

Daniel-Constantin Mierla authored on 06/01/2022 10:08:09
Showing 1 changed files
... ...
@@ -263,9 +263,10 @@ static void dbcl_rpc_disable_connection(rpc_t *rpc, void *c)
263 263
 		return;
264 264
 	}
265 265
 
266
-	if(con->sinfo==NULL)
266
+	if(con->sinfo==NULL) {
267 267
 		rpc->fault(c, 500, "Cluster state info missing.");
268 268
 		return;
269
+	}
269 270
 
270 271
 	/* Overwrite the number of seconds if the connection is already disabled. */
271 272
 	if (con->sinfo->state & DBCL_CON_INACTIVE)