Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
subscriptions: added NULL check to subscription_unsubscribe()
  • Loading branch information
perexg committed May 2, 2015
1 parent 41bb5cd commit 8d8374b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/subscriptions.c
Expand Up @@ -550,6 +550,9 @@ subscription_unsubscribe(th_subscription_t *s, int quiet)
char buf[512];
size_t l = 0;

if (s == NULL)
return;

lock_assert(&global_lock);

s->ths_state = SUBSCRIPTION_ZOMBIE;
Expand Down

0 comments on commit 8d8374b

Please sign in to comment.