Przeglądaj źródła

cfg framework: unlock on error

release the global lock when the group instance is not found
Miklos Tirpak 15 lat temu
rodzic
commit
a138e2b1ab
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      cfg/cfg_ctx.c

+ 1 - 1
cfg/cfg_ctx.c

@@ -433,7 +433,7 @@ int cfg_set_now(cfg_ctx_t *ctx, str *group_name, unsigned int *group_id, str *va
 							*group_id);
 			if (!group_inst) {
 				LOG(L_ERR, "ERROR: cfg_set_now(): global group instance is not found\n");
-				goto error0;
+				goto error;
 			}
 			var_block = group_inst->vars;
 		} else {