diff --git a/common/homedir.c b/common/homedir.c index ee4438c1c..fce6d44be 100644 --- a/common/homedir.c +++ b/common/homedir.c @@ -586,6 +586,8 @@ _gnupg_socketdir_internal (int skip_checks, unsigned *r_info) else *r_info |= 64; /* Subdir does not exist. */ } + else + goto leave; /* Success! */ } else *r_info |= 64; /* Subdir does not exist. */