summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-infiniband.c
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/devices/nm-device-infiniband.c
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/devices/nm-device-infiniband.c')
-rw-r--r--src/devices/nm-device-infiniband.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device-infiniband.c b/src/devices/nm-device-infiniband.c
index 05329f3363..d35c4f21b8 100644
--- a/src/devices/nm-device-infiniband.c
+++ b/src/devices/nm-device-infiniband.c
@@ -230,8 +230,8 @@ complete_connection (NMDevice *device,
nm_utils_complete_generic (connection,
NM_SETTING_INFINIBAND_SETTING_NAME,
existing_connections,
- _("InfiniBand connection %d"),
NULL,
+ _("InfiniBand connection"),
TRUE);
s_infiniband = nm_connection_get_setting_infiniband (connection);