Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
api idnode: fix mutex lock/unlock in api_idnode_handler
  • Loading branch information
perexg committed May 5, 2016
1 parent d4384a5 commit 06fdb8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/api_idnode.c
Expand Up @@ -628,8 +628,6 @@ api_idnode_handler
if (!(uuid = htsmsg_field_get_str(f)))
return EINVAL;

pthread_mutex_lock(&global_lock);

/* Multiple */
if (uuids) {
const idnodes_rb_t *domain = NULL;
Expand All @@ -642,6 +640,7 @@ api_idnode_handler
if ((in = idnode_find(uuid, NULL, domain)) != NULL) {
domain = in->in_domain;
if (idnode_perm(in, perm, msg)) {
pthread_mutex_unlock(&global_lock);
pcnt++;
continue;
}
Expand Down

0 comments on commit 06fdb8b

Please sign in to comment.