summaryrefslogtreecommitdiff
path: root/src/NetworkManagerUtils.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-08-25 16:21:59 +0200
committerThomas Haller <thaller@redhat.com>2014-08-25 16:46:14 +0200
commited20177d27f84dcdad31f17f354d30b02fe30a4c (patch)
tree3709ae026b2d24fdd3f80befed1384fbe448b553 /src/NetworkManagerUtils.h
parent6de4a548df53e4837f9c3d384713d4be0a162f95 (diff)
downloadNetworkManager-ed20177d27f84dcdad31f17f354d30b02fe30a4c.tar.gz
core: refactor nm_utils_complete_generic() not to use a dynamic format string
For NMDeviceWifi and NMDeviceWimax, the printf format string for nm_utils_complete_generic() was created based on ssid/nsp. Since these input strings are untrusted, this is a serious bug. Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/NetworkManagerUtils.h')
-rw-r--r--src/NetworkManagerUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NetworkManagerUtils.h b/src/NetworkManagerUtils.h
index 8b532b78a6..92dd5ec4e4 100644
--- a/src/NetworkManagerUtils.h
+++ b/src/NetworkManagerUtils.h
@@ -102,8 +102,8 @@ const char *nm_utils_get_ip_config_method (NMConnection *connection,
void nm_utils_complete_generic (NMConnection *connection,
const char *ctype,
const GSList *existing,
- const char *format,
const char *preferred,
+ const char *fallback_prefix,
gboolean default_enable_ipv6);
char *nm_utils_new_vlan_name (const char *parent_iface, guint32 vlan_id);