We get segfault if we try to enumerate users and the last user can't be mapped to an uid. This problem has been introduced with bug #8608.
Created attachment 7215 [details] Patch
Created attachment 7221 [details] patch2
Comment on attachment 7221 [details] patch2 Ok
Created attachment 7222 [details] patch3 Some cosmetic changes. Thanks for the comments Volker. I've tested it again and it works.
Comment on attachment 7222 [details] patch3 Obvious comment: + if (domain == NULL) { + return NULL; + } + is redundant. But please put it in as-is, yet another round is a bit too much I think. Thanks for the clean-ups!
Karolin, could you please pick for 3.5 and 3.6? Thanks! You can cherry pick from master: 5075e565684627dfbd23f715da344b4365351ccb b9d208bdaa9da2a5ae534481865efc881b851b01
Pushed to both branches. Closing out bug report. Thanks!