[sr-dev] git:tirpi/cfg_framework_multivalue: cfg framework: unlock on error

Miklos Tirpak miklos at iptel.org
Tue Sep 14 16:46:30 CEST 2010


Module: sip-router
Branch: tirpi/cfg_framework_multivalue
Commit: a138e2b1aba2cea03310d1061e641736b452e7b5
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a138e2b1aba2cea03310d1061e641736b452e7b5

Author: Miklos Tirpak <miklos at iptel.org>
Committer: Miklos Tirpak <miklos at iptel.org>
Date:   Wed Sep  8 17:32:48 2010 +0200

cfg framework: unlock on error

release the global lock when the group instance is not found

---

 cfg/cfg_ctx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cfg/cfg_ctx.c b/cfg/cfg_ctx.c
index cbdd5a7..94f2d98 100644
--- a/cfg/cfg_ctx.c
+++ b/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 {




More information about the sr-dev mailing list