Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
descrambler: move lock before csa type init (clang sanitizer)
  • Loading branch information
perexg committed Mar 10, 2016
1 parent 9f44f72 commit b8492e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/descrambler/descrambler.c
Expand Up @@ -429,11 +429,11 @@ descrambler_keys ( th_descrambler_t *td, int type,
return;
}

if (tvhcsa_set_type(&dr->dr_csa, type) < 0)
return;

pthread_mutex_lock(&t->s_stream_mutex);

if (tvhcsa_set_type(&dr->dr_csa, type) < 0)
goto fin;

LIST_FOREACH(td2, &t->s_descramblers, td_service_link)
if (td2 != td && td2->td_keystate == DS_RESOLVED) {
tvhlog(LOG_DEBUG, "descrambler",
Expand Down

0 comments on commit b8492e0

Please sign in to comment.