Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package modem-manager-gui for 
openSUSE:Factory checked in at 2022-08-30 14:48:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/modem-manager-gui (Old)
 and      /work/SRC/openSUSE:Factory/.modem-manager-gui.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "modem-manager-gui"

Tue Aug 30 14:48:57 2022 rev:13 rq:999898 version:0.0.20

Changes:
--------
--- /work/SRC/openSUSE:Factory/modem-manager-gui/modem-manager-gui.changes      
2022-05-25 20:34:32.052225296 +0200
+++ 
/work/SRC/openSUSE:Factory/.modem-manager-gui.new.2083/modem-manager-gui.changes
    2022-08-30 14:49:27.380116800 +0200
@@ -1,0 +2,5 @@
+Fri Aug 19 10:10:54 UTC 2022 - Adam Mizerski <a...@mizerski.pl>
+
+- added patch fix_segfault_on_DNS_entries.patch
+
+-------------------------------------------------------------------

New:
----
  fix_segfault_on_DNS_entries.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ modem-manager-gui.spec ++++++
--- /var/tmp/diff_new_pack.u267YX/_old  2022-08-30 14:49:27.832117954 +0200
+++ /var/tmp/diff_new_pack.u267YX/_new  2022-08-30 14:49:27.836117964 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package modem-manager-gui
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -33,6 +33,8 @@
 # Alternatively, if the file should not be executed, then ensure that it is not
 # marked as executable or don't install it in a path that is reserved for 
executables.
 Patch0:         95-mmgui-timestamp-notifier.diff
+# PATCH-FIX-OPENSUSE fix_segfault_on_DNS_entries.patch -- from 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004258#30
+Patch1:         fix_segfault_on_DNS_entries.patch
 BuildRequires:  fdupes
 BuildRequires:  gdbm-devel
 BuildRequires:  itstool >= 1.2
@@ -64,6 +66,7 @@
 %prep
 %setup -q -n %{name}
 %patch0
+%patch1 -p1
 
 %build
 %configure

++++++ fix_segfault_on_DNS_entries.patch ++++++
From: Patrizio Tufarolo <patriziotufar...@gmail.com>
Date: Wed, 25 May 2022 08:11:36 +0200
Subject: fix_segfault_on_DNS_entries

Slightly edited by Wolfram Sang <w...@kernel.org>
---
 src/modules/nm09.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/modules/nm09.c b/src/modules/nm09.c
index 2b3098b..02d0e20 100644
--- a/src/modules/nm09.c
+++ b/src/modules/nm09.c
@@ -529,7 +529,7 @@ static mmguiconn_t 
mmgui_module_connection_get_params(mmguicore_t mmguicore, con
        GVariant *connconsec, *connipv4sec, *conntechsec;
        GVariant *conndnsvar;
        gchar *conntypestr, *connparamstr;
-       gint i, addrint;
+       gint i, addrint, n_dns_entries;
        GVariant *addrvar;
        gchar *techstr;
        mmguiconn_t connection;
@@ -630,7 +630,8 @@ static mmguiconn_t 
mmgui_module_connection_get_params(mmguicore_t mmguicore, con
                                        if (connipv4sec != NULL) {
                                                /*DNS*/
                                                conndnsvar = 
g_variant_lookup_value(connipv4sec, "dns", G_VARIANT_TYPE_ARRAY);
-                                               for (i = 0; i < 
g_variant_n_children(conndnsvar); i++) {
+                                               n_dns_entries = conndnsvar ? 
g_variant_n_children(conndnsvar) : 0;
+                                               for (i = 0; i < n_dns_entries; 
i++) {
                                                        addrvar = 
g_variant_get_child_value(conndnsvar, i);
                                                        addrint = 
ntohl(g_variant_get_uint32(addrvar));
                                                        if (connection->dns1 == 
NULL) {

Reply via email to