]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix segmentation fault bug when a client's DACP status is withdrawn. Not enough testi...
authorMike Brady <mikebrady@eircom.net>
Wed, 13 Dec 2017 23:46:11 +0000 (23:46 +0000)
committerMike Brady <mikebrady@eircom.net>
Wed, 13 Dec 2017 23:46:11 +0000 (23:46 +0000)
mdns_avahi.c

index d40836a2100cec7e14ee3ffdf7c3ad8be3886774..5a957a5721a334d406f9dcda4122f0182dbb579b 100644 (file)
@@ -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