Hello community, here is the log from the commit of package gssdp for openSUSE:Factory checked in at 2020-06-29 21:14:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gssdp (Old) and /work/SRC/openSUSE:Factory/.gssdp.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gssdp" Mon Jun 29 21:14:55 2020 rev:52 rq:817300 version:1.2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/gssdp/gssdp.changes 2020-01-08 19:32:13.876594975 +0100 +++ /work/SRC/openSUSE:Factory/.gssdp.new.3060/gssdp.changes 2020-06-29 21:15:05.201175310 +0200 @@ -1,0 +2,9 @@ +Tue Jun 23 07:52:56 UTC 2020 - Paolo Stivanin <[email protected]> + +- Update to version 1.2.3: + + Prevent crash if client is not initialized + + Fix critical if network device does not exists + + Fix ::1 multicast + + client. Add getter for network mask + +------------------------------------------------------------------- Old: ---- gssdp-1.2.2.tar.xz New: ---- gssdp-1.2.3.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gssdp.spec ++++++ --- /var/tmp/diff_new_pack.gOiDg3/_old 2020-06-29 21:15:07.301181808 +0200 +++ /var/tmp/diff_new_pack.gOiDg3/_new 2020-06-29 21:15:07.305181820 +0200 @@ -21,7 +21,7 @@ %define sover 1.2 Name: gssdp -Version: 1.2.2 +Version: 1.2.3 Release: 0 Summary: Library for resource discovery and announcement over SSDP License: LGPL-2.0-or-later ++++++ gssdp-1.2.2.tar.xz -> gssdp-1.2.3.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gssdp-1.2.2/NEWS new/gssdp-1.2.3/NEWS --- old/gssdp-1.2.2/NEWS 2020-01-02 12:44:00.000000000 +0100 +++ new/gssdp-1.2.3/NEWS 2020-06-22 23:50:39.681717900 +0200 @@ -1,3 +1,17 @@ +1.2.3 +===== + - Prevent crash if client is not initialized + - Fix critical if network device does not exists + - Fix ::1 multicast + - client. Add getter for network mask + +Bugs fixed in this release: + - https://gitlab.gnome.org/GNOME/gssdp/issues/5 + - https://gitlab.gnome.org/GNOME/gssdp/issues/6 + +All contributors to this release: + - Jens Georg <[email protected]> + 1.2.2 ===== - Fix macOS dylib versioning diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gssdp-1.2.2/libgssdp/gssdp-client.c new/gssdp-1.2.3/libgssdp/gssdp-client.c --- old/gssdp-1.2.2/libgssdp/gssdp-client.c 2020-01-02 12:44:00.000000000 +0100 +++ new/gssdp-1.2.3/libgssdp/gssdp-client.c 2020-06-22 23:50:39.681717900 +0200 @@ -562,7 +562,7 @@ "The IP netmask of the associated" "network interface", G_TYPE_INET_ADDRESS_MASK, - G_PARAM_WRITABLE | + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); @@ -1156,6 +1156,24 @@ } /** + * gssdp_client_get_address_mask: + * @client: A #GSSDPClient + * + * Since: 1.2.3 + * + * Returns: (transfer full): Address mask of this client + */ +GInetAddressMask * +gssdp_client_get_address_mask (GSSDPClient *client) +{ + g_return_val_if_fail (GSSDP_IS_CLIENT (client), NULL); + + GSSDPClientPrivate *priv = gssdp_client_get_instance_private (client); + + return g_object_ref (priv->device.host_mask); +} + +/** * gssdp_client_get_uda_version: * @client: A #GSSDPClient * @@ -1258,6 +1276,8 @@ priv = gssdp_client_get_instance_private (client); + g_return_if_fail (priv->initialized); + if (!priv->active) /* We don't send messages in passive mode */ return; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gssdp-1.2.2/libgssdp/gssdp-client.h new/gssdp-1.2.3/libgssdp/gssdp-client.h --- old/gssdp-1.2.2/libgssdp/gssdp-client.h 2020-01-02 12:44:00.000000000 +0100 +++ new/gssdp-1.2.3/libgssdp/gssdp-client.h 2020-06-22 23:50:39.685717800 +0200 @@ -98,6 +98,9 @@ GSocketFamily gssdp_client_get_family (GSSDPClient *client); +GInetAddressMask * +gssdp_client_get_address_mask (GSSDPClient *client); + void gssdp_client_append_header (GSSDPClient *client, const char *name, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gssdp-1.2.2/libgssdp/gssdp-net-posix.c new/gssdp-1.2.3/libgssdp/gssdp-net-posix.c --- old/gssdp-1.2.2/libgssdp/gssdp-net-posix.c 2020-01-02 12:44:00.000000000 +0100 +++ new/gssdp-1.2.3/libgssdp/gssdp-net-posix.c 2020-06-22 23:50:39.685717800 +0200 @@ -544,7 +544,9 @@ break; } - device->address_family = g_inet_address_get_family (device->host_addr); + if (device->host_addr != NULL) { + device->address_family = g_inet_address_get_family (device->host_addr); + } g_list_free (up_ifaces); freeifaddrs (ifa_list); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gssdp-1.2.2/libgssdp/gssdp-socket-source.c new/gssdp-1.2.3/libgssdp/gssdp-socket-source.c --- old/gssdp-1.2.2/libgssdp/gssdp-socket-source.c 2020-01-02 12:44:00.000000000 +0100 +++ new/gssdp-1.2.3/libgssdp/gssdp-socket-source.c 2020-06-22 23:50:39.693718000 +0200 @@ -271,16 +271,20 @@ } else { guint port = SSDP_PORT; - if (!gssdp_socket_mcast_interface_set (priv->socket, - priv->address, - (guint32) priv->index, - &inner_error)) { - g_propagate_prefixed_error ( - error, - inner_error, - "Failed to set multicast interface"); + if (family != G_SOCKET_FAMILY_IPV6 || + (!g_inet_address_get_is_loopback (priv->address))) { - goto error; + if (!gssdp_socket_mcast_interface_set (priv->socket, + priv->address, + (guint32) priv->index, + &inner_error)) { + g_propagate_prefixed_error ( + error, + inner_error, + "Failed to set multicast interface"); + + goto error; + } } /* Use user-supplied or random port for the socket source used diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gssdp-1.2.2/meson.build new/gssdp-1.2.3/meson.build --- old/gssdp-1.2.2/meson.build 2020-01-02 12:44:00.000000000 +0100 +++ new/gssdp-1.2.3/meson.build 2020-06-22 23:50:39.693718000 +0200 @@ -1,4 +1,4 @@ -project('gssdp', 'c', version: '1.2.2', meson_version : '>= 0.48.0') +project('gssdp', 'c', version: '1.2.3', meson_version : '>= 0.48.0') gnome = import('gnome') pkg = import('pkgconfig')
