about summary refs log tree commit diff
path: root/shared/nm-glib-aux
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2019-12-26 06:50:22 +0100
committerMichael Biebl <biebl@debian.org>2019-12-26 06:50:22 +0100
commitfe6888e4bfd824ad1263b3151f9bf66b7974752e (patch)
tree09d07c35668b6d64be114d941440e86deef8fba5 /shared/nm-glib-aux
parente6e01bf48a28c03e61ac5424829a08dfc372533e (diff)
parent724bcc5c7be3aed3646ed2b2989c34d438217176 (diff)
Update upstream source from tag 'upstream/1.22.2'
Update to upstream version '1.22.2'
with Debian dir 54b7af73627e37cbe440e9ae6ae1d795e88f2247
Diffstat (limited to 'shared/nm-glib-aux')
-rw-r--r--shared/nm-glib-aux/nm-dbus-aux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/nm-glib-aux/nm-dbus-aux.c b/shared/nm-glib-aux/nm-dbus-aux.c
index 75b282bc..86061aef 100644
--- a/shared/nm-glib-aux/nm-dbus-aux.c
+++ b/shared/nm-glib-aux/nm-dbus-aux.c
@@ -357,8 +357,10 @@ _nm_dbus_error_is (GError *error, ...)
 
 	va_start (ap, error);
 	while ((name = va_arg (ap, const char *))) {
-		if (nm_streq (dbus_error, name))
+		if (nm_streq (dbus_error, name)) {
+			va_end (ap);
 			return TRUE;
+		}
 	}
 	va_end (ap);