Skip to content

Commit

Permalink
Fix two return value checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sumit-bose authored and sgallagher committed Nov 1, 2010
1 parent 2cc1426 commit 8fa6093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/krb5/krb5_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ struct tevent_req *krb5_auth_send(TALLOC_CTX *mem_ctx,
kr->kpasswd_srv = NULL;
subreq = be_resolve_server_send(state, state->ev, state->be_ctx,
krb5_ctx->service->name);
if (req == NULL) {
if (subreq == NULL) {
DEBUG(1, ("be_resolve_server_send failed.\n"));
ret = ENOMEM;
goto done;
Expand Down Expand Up @@ -844,7 +844,7 @@ static void krb5_resolve_kdc_done(struct tevent_req *subreq)
kr->krb5_ctx->kpasswd_service != NULL) {
subreq = be_resolve_server_send(state, state->ev, state->be_ctx,
kr->krb5_ctx->kpasswd_service->name);
if (req == NULL) {
if (subreq == NULL) {
DEBUG(1, ("be_resolve_server_send failed.\n"));
ret = ENOMEM;
goto failed;
Expand Down

0 comments on commit 8fa6093

Please sign in to comment.