diff --git a/src/home/homectl.c b/src/home/homectl.c index 556ea9be81..1fc888c07f 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -3887,7 +3887,7 @@ static int parse_argv(int argc, char *argv[]) { break; case ARG_SETENV: { - _cleanup_free_ char **l = NULL; + _cleanup_strv_free_ char **l = NULL; _cleanup_(sd_json_variant_unrefp) sd_json_variant *ne = NULL; sd_json_variant *e; diff --git a/src/shared/ask-password-api.c b/src/shared/ask-password-api.c index dd6b8abc65..b8602eee78 100644 --- a/src/shared/ask-password-api.c +++ b/src/shared/ask-password-api.c @@ -1133,6 +1133,8 @@ static int ask_password_credential(const AskPasswordRequest *req, AskPasswordFla r = read_credential(req->credential, (void**) &buffer, &size); if (IN_SET(r, -ENXIO, -ENOENT)) /* No credentials passed or this credential not defined? */ return -ENOKEY; + if (r < 0) + return r; l = strv_parse_nulstr(buffer, size); if (!l)