aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_old_handlers.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-07 10:52:59 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-08 09:42:07 (GMT)
commit1f102d3bb0b4621e32d3402a6e42a97a71d707d4 (patch)
treeb279a31052f7831817553376ad8901cf7fc67d99 /wpa_supplicant/dbus/dbus_old_handlers.c
parenteeab4f2fdaf20b23f1c27c5ce7f655442e2f7902 (diff)
downloadhostap-1f102d3bb0b4621e32d3402a6e42a97a71d707d4.zip
hostap-1f102d3bb0b4621e32d3402a6e42a97a71d707d4.tar.gz
hostap-1f102d3bb0b4621e32d3402a6e42a97a71d707d4.tar.bz2
Check os_snprintf() result more consistently - manual
This converts os_snprintf() result validation cases to use os_snprintf_error() for cases that were note covered by spatch and semantic patches. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_old_handlers.c')
-rw-r--r--wpa_supplicant/dbus/dbus_old_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_old_handlers.c b/wpa_supplicant/dbus/dbus_old_handlers.c
index 5f54cf1..b78644b 100644
--- a/wpa_supplicant/dbus/dbus_old_handlers.c
+++ b/wpa_supplicant/dbus/dbus_old_handlers.c
@@ -968,7 +968,7 @@ DBusMessage * wpas_dbus_iface_set_network(DBusMessage *message,
goto error;
ret = os_snprintf(value, size, "\"%s\"",
entry.str_value);
- if (ret < 0 || (size_t) ret != (size - 1))
+ if (os_snprintf_error(size, ret))
goto error;
} else {
value = os_strdup(entry.str_value);