Skip to content

Commit

Permalink
LDAP: Check return value
Browse files Browse the repository at this point in the history
Reported by Coverity

Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
  • Loading branch information
jhrozek committed Sep 8, 2014
1 parent eb0cde4 commit d804120
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/ldap/sdap_access.c
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,12 @@ static void sdap_access_lock_get_lockout_done(struct tevent_req *subreq)
state = tevent_req_data(req, struct sdap_access_lock_req_ctx);

ret = sdap_get_generic_recv(subreq, state, &num_results, &results);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE, "Cannot retrieve ppolicy\n");
ret = ERR_NETWORK_IO;
goto done;
}

talloc_zfree(subreq);

/* Check the number of responses we got
Expand Down

0 comments on commit d804120

Please sign in to comment.