sd_uid_get_state: do not return -ENOENT if state is "offline" (#6302)

This commit is contained in:
Yu, Li-Yu
2017-07-08 18:59:29 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 7635ab8e74
commit 4c4bc54697
+1 -1
View File
@@ -293,7 +293,7 @@ _public_ int sd_uid_get_state(uid_t uid, char**state) {
return -ENOMEM;
}
if (r < 0) {
else if (r < 0) {
free(s);
return r;
}