From: Mike Brady Date: Wed, 13 Dec 2017 23:40:45 +0000 (+0000) Subject: Fix segmentation fault bug when a client's DACP status is withdrawn. Not enough testi... X-Git-Tag: 3.1.6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8551226d716e293f44b4b9e9af1b57fd76a00bcc;p=thirdparty%2Fshairport-sync.git Fix segmentation fault bug when a client's DACP status is withdrawn. Not enough testing... --- diff --git a/mdns_avahi.c b/mdns_avahi.c index 096b4e73..bb3ef0a6 100644 --- a/mdns_avahi.c +++ b/mdns_avahi.c @@ -140,7 +140,7 @@ static void browse_callback(AvahiServiceBrowser *b, AvahiIfIndex interface, Avah if (strcmp(dacpid, conn->dacp_id) == 0) { if (conn->dacp_id != 0) { debug(1, "Client's DACP status withdrawn."); - conn->dacp_id = 0; + conn->dacp_port = 0; #if defined(HAVE_DBUS) || defined(HAVE_MPRIS) set_dacp_server_information(conn); // this will have the effect of telling the scanner that the DACP server is no longer working #endif