]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Bus driver: add default BusDriverFound switch cases
authorSimon McVittie <smcv@debian.org>
Thu, 13 Oct 2016 22:03:08 +0000 (23:03 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 17 Jan 2017 17:20:53 +0000 (17:20 +0000)
If we get an impossible result, treat it as BUS_DRIVER_FOUND_ERROR.

Signed-off-by: Simon McVittie <smcv@debian.org>
bus/driver.c

index 83e8ead42e1a34238f979649c8e99e30f598176c..ae29df629a721cfcdfba2176aa7758b4a541e00a 100644 (file)
@@ -1659,6 +1659,8 @@ bus_driver_handle_get_connection_unix_user (DBusConnection *connection,
           uid = DBUS_UID_UNSET;
         break;
       case BUS_DRIVER_FOUND_ERROR:
+        /* fall through */
+      default:
         goto failed;
     }
 
@@ -1726,6 +1728,8 @@ bus_driver_handle_get_connection_unix_process_id (DBusConnection *connection,
           pid = DBUS_PID_UNSET;
         break;
       case BUS_DRIVER_FOUND_ERROR:
+        /* fall through */
+      default:
         goto failed;
     }
 
@@ -1923,6 +1927,8 @@ bus_driver_handle_get_connection_credentials (DBusConnection *connection,
           ulong_uid = DBUS_UID_UNSET;
         break;
       case BUS_DRIVER_FOUND_ERROR:
+        /* fall through */
+      default:
         goto failed;
     }