Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
79d2ab78 by Thomas Guillem at 2024-02-28T09:07:55+00:00
sd: sap: fix crash with NULL category

Regression from fd84c2b48b638fb070694acc686ebfcf8c61221e

Fixes #28543

- - - - -


1 changed file:

- modules/services_discovery/sap.c


Changes:

=====================================
modules/services_discovery/sap.c
=====================================
@@ -285,7 +285,7 @@ static sap_announce_t *CreateAnnounce(services_discovery_t 
*p_sd,
         /* backward compatibility with VLC 0.7.3-2.0.0 senders */
         psz_value = vlc_sdp_attr_value(p_sdp, "x-plgroup");
     }
-    input_item_t *cat = AddCategory(p_sd, psz_value);
+    input_item_t *cat = psz_value == NULL ? NULL : AddCategory(p_sd, 
psz_value);
     free(str);
     services_discovery_AddSubItem(p_sd, cat, p_input);
 



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/79d2ab78ab14253954045790349591419151a171

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/79d2ab78ab14253954045790349591419151a171
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to