Commit 80e4775f authored by Dan Williams's avatar Dan Williams
Browse files

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
parent fc408b39
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment