diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-07-30 18:03:47 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-07-31 12:08:39 -0400 |
commit | 5e22a141d0d755c1ee54ea40c5795e56ba18d02f (patch) | |
tree | 4982cff106e673a65ed8405e1bd414d6a13a2d90 /server/tools/sss_usermod.c | |
parent | 6cbe5ee74631122839cb4ebf85be6768e4fd23c5 (diff) | |
download | sssd-5e22a141d0d755c1ee54ea40c5795e56ba18d02f.tar.gz sssd-5e22a141d0d755c1ee54ea40c5795e56ba18d02f.tar.bz2 sssd-5e22a141d0d755c1ee54ea40c5795e56ba18d02f.zip |
Use correct return codes
Some code paths that should exit with an error used potentionally
incorrect return code.
Diffstat (limited to 'server/tools/sss_usermod.c')
-rw-r--r-- | server/tools/sss_usermod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/sss_usermod.c b/server/tools/sss_usermod.c index 65e94978..cc94be3a 100644 --- a/server/tools/sss_usermod.c +++ b/server/tools/sss_usermod.c @@ -140,7 +140,7 @@ static void mod_user(struct tevent_req *req) data->domain, data->name, data->attrs, SYSDB_MOD_REP); if (!subreq) { - return mod_user_done(data, ret); + return mod_user_done(data, ENOMEM); } tevent_req_set_callback(subreq, mod_user_attr_done, data); return; |