diff options
author | Simo Sorce <idra@samba.org> | 2009-01-13 17:12:08 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-01-13 17:12:08 -0500 |
commit | 928231f18f376df346b95e9b402fea4b20e95d98 (patch) | |
tree | 693c41aae5c8338b54f9b9a7bd26d252afa26dc3 /server/nss | |
parent | e95623eb425c16baf3fcebc7076cc39414107a88 (diff) | |
download | sssd-928231f18f376df346b95e9b402fea4b20e95d98.tar.gz sssd-928231f18f376df346b95e9b402fea4b20e95d98.tar.bz2 sssd-928231f18f376df346b95e9b402fea4b20e95d98.zip |
Fix return, dbus would abort because we were passing values and
not pointers to values.
Check domain is never null (or dbus will abort).
Diffstat (limited to 'server/nss')
-rw-r--r-- | server/nss/nsssrv_dp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/nss/nsssrv_dp.c b/server/nss/nsssrv_dp.c index a0f31d57..5b1092ac 100644 --- a/server/nss/nsssrv_dp.c +++ b/server/nss/nsssrv_dp.c @@ -99,6 +99,10 @@ int nss_dp_send_acct_req(struct nss_ctx *nctx, TALLOC_CTX *memctx, return EINVAL; } + if (!domain) { + return EINVAL; + } + switch (type) { case NSS_DP_USER: be_type = BE_REQ_USER; |