userdb: use RET_GATHER() at one more place and update comment

This commit is contained in:
Yu Watanabe
2025-06-04 21:50:12 +09:00
parent bf4d6c3d51
commit 8bfcfa17fe
+2 -3
View File
@@ -605,12 +605,11 @@ static int userdb_start_query(
if (is_dropin && r >= 0)
iterator->dropin_covered = true;
if (ret == 0 && r < 0)
ret = r;
RET_GATHER(ret, r);
}
if (set_isempty(iterator->links))
return ret < 0 ? ret : -ESRCH; /* propagate last error we saw if we couldn't connect to anything. */
return ret < 0 ? ret : -ESRCH; /* propagate the first error we saw if we couldn't connect to anything. */
/* We connected to some services, in this case, ignore the ones we failed on */
return 0;