diff options
author | Maneesh Jain <maneesh.jain@samsung.com> | 2015-11-20 11:53:36 +0530 |
---|---|---|
committer | taesubkim <taesub.kim@samsung.com> | 2016-06-09 17:29:09 +0900 |
commit | bae72c44f986bd48b7b3dcf77aad982466199eba (patch) | |
tree | 430224f1c1b540c9747ea53a9665eed49e58217e /gdhcp | |
parent | facc7c942bc7d6e996198311984875d356a59292 (diff) | |
download | connman-bae72c44f986bd48b7b3dcf77aad982466199eba.tar.gz connman-bae72c44f986bd48b7b3dcf77aad982466199eba.tar.bz2 connman-bae72c44f986bd48b7b3dcf77aad982466199eba.zip |
Merge:Partial Fix a crash and valgrind invalid read error
Change-Id: Ib36cab79ea86048860ffda7d6108b769a3cc9b33
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Diffstat (limited to 'gdhcp')
-rwxr-xr-x | gdhcp/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c index 106c7770..2c442e59 100755 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -2776,7 +2776,7 @@ int g_dhcp_client_start(GDHCPClient *dhcp_client, const char *last_address) if (addr == 0xFFFFFFFF || ((addr & LINKLOCAL_ADDR) == LINKLOCAL_ADDR)) { addr = 0; - } else { + } else if (dhcp_client->last_address != last_address) { g_free(dhcp_client->last_address); dhcp_client->last_address = g_strdup(last_address); } |