Hi,

On Wed, 2015-05-20 at 12:50 +0530, Saurav Babu wrote:
> <EP-584CD5AB95AE4A3A879836122994DB42>

So, in which cases does this issue manifest itself? From the code we can
read what it does, but what is causing an IP address to change to
something else? What's the use case and environment for this to happen?

> ---
>  src/ipconfig.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/ipconfig.c b/src/ipconfig.c
> index f8c148b..eb18533 100644
> --- a/src/ipconfig.c
> +++ b/src/ipconfig.c
> @@ -508,6 +508,10 @@ void __connman_ipconfig_newlink(int index, unsigned 
> short type,
>                                               index, type, type2str(type));
>  
>  update:
> +     if (g_strcmp0(ipdevice->address, address) != 0) {
> +             g_free(ipdevice->address);
> +             ipdevice->address = g_strdup(address);
> +     }
>       ipdevice->mtu = mtu;
>  
>       update_stats(ipdevice, ifname, stats);

Should something happen if DHCP is in use and a a different address gets
set...?

Cheers,

        Patrik


_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to