[Pkg-utopia-maintainers] Bug#730437: Bug#730437: patch

Michael Biebl biebl at debian.org
Wed Apr 2 17:27:35 UTC 2014


Am 29.03.2014 17:39, schrieb Rian Shelley:
> This is by no means a complete fix, but the following patch fixes the
> segfault. It seems to behave normally now.
> 
> --- a/nm-manager.c      2014-03-29 11:08:25.000000000 -0500
> +++ b/nm-manager.c      2014-03-29 10:53:33.607630448 -0500
> @@ -649,7 +649,11 @@
>                 return;
>         }
> 
> -       nm_connectivity_set_online (priv->connectivity, new_state >=
> NM_STATE_CONNECTED_LOCAL);
> +       /* don't set online if there is no connectivity object. this
> happens
> +       during startup*/
> +       if (priv->connectivity) {
> +               nm_connectivity_set_online (priv->connectivity, new_state
>> = NM_STATE_CONNECTED_LOCAL);
> +       }
>         set_state (manager, new_state);
>  }


Hm, if priv->connectivity is unset, this means something in
nm_manager_new() is broken. priv->connectivity is explicitly set in the
constructor:

priv->connectivity = nm_connectivity_new (connectivity_uri,
connectivity_interval, connectivity_response);


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20140402/9deddbcc/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list