From: Yu Watanabe Date: Fri, 31 Jan 2020 14:08:53 +0000 (+0900) Subject: user-record-util: add missing error check X-Git-Tag: v245-rc1~42^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02cec15629629de45237ad63fc42530245842385;p=thirdparty%2Fsystemd.git user-record-util: add missing error check Fixes CID#1415123. --- diff --git a/src/home/user-record-util.c b/src/home/user-record-util.c index cb840f910b2..34f9d76cb26 100644 --- a/src/home/user-record-util.c +++ b/src/home/user-record-util.c @@ -737,6 +737,8 @@ int user_record_make_hashed_password(UserRecord *h, char **secret, bool extend) return r; r = json_variant_set_field(&priv, "hashedPassword", new_array); + if (r < 0) + return r; } r = json_variant_set_field(&h->json, "privileged", priv);