Re: [PATCH] ipconfig: Do not pass a NULL pointer to D-Bus

2014-09-02 Thread Patrik Flykt
On Fri, 2014-08-29 at 10:00 +0300, Hannu Mallat wrote: > connman_inet_ifname() may return a NULL pointer e.g. if the interface > does not exist in the kernel anymore but connman isn't yet aware of > that. Passing a NULL pointer to D-Bus may result in an abort, so check > the return value. Applied,

[PATCH] ipconfig: Do not pass a NULL pointer to D-Bus

2014-08-29 Thread Hannu Mallat
connman_inet_ifname() may return a NULL pointer e.g. if the interface does not exist in the kernel anymore but connman isn't yet aware of that. Passing a NULL pointer to D-Bus may result in an abort, so check the return value. --- src/ipconfig.c | 8 +--- 1 file changed, 5 insertions(+), 3 del