mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 09:04:55 +00:00
2005-02-14 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDHCP.c - (set_domain_searches): Fix free of invalid pointer git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@452 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
fc408b3998
commit
80e4775f60
|
@ -1,3 +1,8 @@
|
|||
2005-02-14 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/NetworkManagerDHCP.c
|
||||
- (set_domain_searches): Fix free of invalid pointer
|
||||
|
||||
2005-02-14 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
Patch from Peter Jones:
|
||||
|
|
|
@ -85,7 +85,7 @@ static void set_domain_searches (NMDevice *dev, const char *searches_str)
|
|||
{
|
||||
GError *error = NULL;
|
||||
GList *elt;
|
||||
char **searches;
|
||||
char **searches, **s;
|
||||
|
||||
/* Reset our domain search list */
|
||||
for (elt = dev->app_data->domain_search_ids; elt; elt = elt->next)
|
||||
|
@ -103,9 +103,9 @@ static void set_domain_searches (NMDevice *dev, const char *searches_str)
|
|||
|
||||
searches = g_strsplit (searches_str, " ", 0);
|
||||
|
||||
for (; *searches; searches++)
|
||||
for (s = searches; *s; s++)
|
||||
{
|
||||
const char *search_elt = *searches;
|
||||
const char *search_elt = *s;
|
||||
guint id;
|
||||
|
||||
syslog (LOG_ERR, G_GNUC_PRETTY_FUNCTION ": Adding domain search: %s\n", search_elt);
|
||||
|
|
Loading…
Reference in a new issue