chiark / gitweb /
sd-login: always return two arrays of same length from sd_seat_get_sessions
[elogind.git] / src / libelogind / sd-login / sd-login.c
index e3cc3628f50741151d029e731fd8e9f63ab88354..c431384b45ad845e09b6c3db9965f78b2981d289 100644 (file)
@@ -775,7 +775,7 @@ _public_ int sd_seat_get_sessions(const char *seat, char ***sessions, uid_t **ui
 
                                 r = parse_uid(k, b + i);
                                 if (r < 0)
-                                        continue;
+                                        return r;
 
                                 i++;
                         }