summaryrefslogtreecommitdiff
path: root/src/providers/krb5
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-27 18:14:36 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-11-01 07:30:07 -0400
commit92836f366dbfafe978f8ab009f20292d68ee55ee (patch)
tree103751a1977bc1f426cc3fa5a754240ce7158e56 /src/providers/krb5
parent7268b93a8f2a95a238be2cde2dafed53a6f5d9bd (diff)
downloadsssd-92836f366dbfafe978f8ab009f20292d68ee55ee.tar.gz
sssd-92836f366dbfafe978f8ab009f20292d68ee55ee.tar.bz2
sssd-92836f366dbfafe978f8ab009f20292d68ee55ee.zip
Fix two return value checks
Diffstat (limited to 'src/providers/krb5')
-rw-r--r--src/providers/krb5/krb5_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
index abf5d533..4299ca89 100644
--- a/src/providers/krb5/krb5_auth.c
+++ b/src/providers/krb5/krb5_auth.c
@@ -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;
@@ -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;