Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit

Initialize err variable in krb5_sendto_kdc

When we get an KRB5_KDC_UNREACH error back from k5_sendto, we check if
the err variable we passed for use by our message handler has been set
to KDC_ERR_SVC_UNAVAILABLE. If k5_sendto doesn't receive any
response, though, the handler isn't called, so we're reading an
uninitialized variable. Initialize it to a value other than
KDC_ERR_SVC_UNAVAILABLE to be sure.

[ghudson@mit.edu: initialize err just before calling k5_sendto; edit
commit message]

https://github.com/krb5/krb5/commit/1ed3f68c2394fbb48731bba4e4e9a60c8b925ca5
Author: Nalin Dahyabhai <nalin@dahyabhai.net>
Committer: Greg Hudson <ghudson@mit.edu>
Commit: 1ed3f68c2394fbb48731bba4e4e9a60c8b925ca5
Branch: master
src/lib/krb5/os/sendto_kdc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
From: tlyu@mit.edu
Subject: git commit

Initialize err variable in krb5_sendto_kdc

When we get an KRB5_KDC_UNREACH error back from k5_sendto, we check if
the err variable we passed for use by our message handler has been set
to KDC_ERR_SVC_UNAVAILABLE. If k5_sendto doesn't receive any
response, though, the handler isn't called, so we're reading an
uninitialized variable. Initialize it to a value other than
KDC_ERR_SVC_UNAVAILABLE to be sure.

[ghudson@mit.edu: initialize err just before calling k5_sendto; edit
commit message]

(cherry picked from commit 1ed3f68c2394fbb48731bba4e4e9a60c8b925ca5)

https://github.com/krb5/krb5/commit/8c91982b52c087b4335f1dada6810ae7bfbe3644
Author: Nalin Dahyabhai <nalin@dahyabhai.net>
Committer: Tom Yu <tlyu@mit.edu>
Commit: 8c91982b52c087b4335f1dada6810ae7bfbe3644
Branch: krb5-1.12
src/lib/krb5/os/sendto_kdc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)