diff options
author | Sumit Bose <sbose@redhat.com> | 2010-12-20 21:55:38 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-21 08:20:32 -0500 |
commit | 3182049e4af4b79dd231fad83ed041915daa7e31 (patch) | |
tree | 3ac8f38a84ed125d415f17a154784fad5a22dc20 /src/providers/krb5/krb5_auth.c | |
parent | 03f88547ec3f42980f4f71af7d017cd7b8b8070a (diff) | |
download | sssd-3182049e4af4b79dd231fad83ed041915daa7e31.tar.gz sssd-3182049e4af4b79dd231fad83ed041915daa7e31.tar.xz sssd-3182049e4af4b79dd231fad83ed041915daa7e31.zip |
Fix potential NULL-dereference in krb5_auth_done()
https://fedorahosted.org/sssd/ticket/745
Diffstat (limited to 'src/providers/krb5/krb5_auth.c')
-rw-r--r-- | src/providers/krb5/krb5_auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c index ce3dea761..49dc6d2e4 100644 --- a/src/providers/krb5/krb5_auth.c +++ b/src/providers/krb5/krb5_auth.c @@ -1182,12 +1182,12 @@ void krb5_auth_done(struct tevent_req *req) } krb5_ctx = get_krb5_ctx(be_req); - if (krb5_ctx == NULL) { + if (krb5_ctx != NULL) { + check_wait_queue(krb5_ctx, pd->user); + } else { DEBUG(1, ("Kerberos context not available.\n")); } - check_wait_queue(krb5_ctx, pd->user); - krb_reply(be_req, dp_err, pd->pam_status); } |