Browse code

cfg framework: unlock on error

release the global lock when the group instance is not found

Miklos Tirpak authored on 08/09/2010 15:32:48
Showing 1 changed files
... ...
@@ -433,7 +433,7 @@ int cfg_set_now(cfg_ctx_t *ctx, str *group_name, unsigned int *group_id, str *va
433 433
 							*group_id);
434 434
 			if (!group_inst) {
435 435
 				LOG(L_ERR, "ERROR: cfg_set_now(): global group instance is not found\n");
436
-				goto error0;
436
+				goto error;
437 437
 			}
438 438
 			var_block = group_inst->vars;
439 439
 		} else {