From 5003c209ca8f863d6608268fedbad2c18fe06179 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 12 Jan 2010 00:57:24 +0100 Subject: [PATCH] audiod _close_filters(): Don't segfault if fn is NULL. --- audiod.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/audiod.c b/audiod.c index 322ce3be..e950dede 100644 --- a/audiod.c +++ b/audiod.c @@ -376,8 +376,11 @@ static void _close_filters(struct slot_info *s) return; for (i = 0; i < a->num_filters; i++) { struct filter_node *fn = s->fns + i; - struct filter *f = filters + fn->filter_num; + struct filter *f; + if (!fn) + continue; + f = filters + fn->filter_num; f->close(fn); btr_free_node(fn->btrn); } -- 2.39.5