]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
subscriptions: added NULL check to subscription_unsubscribe()
authorJaroslav Kysela <perex@perex.cz>
Sat, 2 May 2015 10:01:20 +0000 (12:01 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 2 May 2015 10:01:20 +0000 (12:01 +0200)
src/subscriptions.c

index b401ce1d0e9b8d5c01f69bb25458cf4fcd8dec94..fb8bbc5deac31122986aadaac9c1d5d9bb9aabe6 100644 (file)
@@ -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;