summaryrefslogtreecommitdiffstats
path: root/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'proxy')
-rw-r--r--proxy/src/gp_config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proxy/src/gp_config.c b/proxy/src/gp_config.c
index 862f90c..f5a3fab 100644
--- a/proxy/src/gp_config.c
+++ b/proxy/src/gp_config.c
@@ -280,6 +280,9 @@ static int load_services(struct gp_config *cfg, struct gp_ini_context *ctx)
eu_passwd = getpwnam(value);
if (!eu_passwd) {
ret = errno;
+ if (ret == 0) { /* not that it gets set anyway... */
+ ret = ENOENT;
+ }
} else {
valnum = eu_passwd->pw_uid;
}