diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-01-17 17:40:04 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-02-01 09:22:42 +0100 |
commit | 3082504f4fb4e4efdc50c99369204e5b2cfac40e (patch) | |
tree | 27ae16a3216556df80f026bbc73f75be88f4aad1 /src | |
parent | af3f03d15a928168626e513e667863e9cd1dceef (diff) | |
download | sssd-3082504f4fb4e4efdc50c99369204e5b2cfac40e.tar.gz sssd-3082504f4fb4e4efdc50c99369204e5b2cfac40e.tar.bz2 sssd-3082504f4fb4e4efdc50c99369204e5b2cfac40e.zip |
dp: check whether hostid backend is configured before filing be request
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/data_provider_be.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index 8a00d928..e4d854bf 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -1758,6 +1758,14 @@ static int be_host_handler(DBusMessage *message, struct sbus_connection *conn) /* process request */ + if (!becli->bectx->bet_info[BET_HOSTID].bet_ops) { + DEBUG(SSSDBG_CRIT_FAILURE, ("Undefined backend target.\n")); + err_maj = DP_ERR_FATAL; + err_min = ENODEV; + err_msg = "HostID back end target is not configured"; + goto done; + } + ret = be_file_request(becli->bectx->bet_info[BET_HOSTID].pvt_bet_data, be_req, becli->bectx->bet_info[BET_HOSTID].bet_ops->handler); |