diff options
author | Benjamin Kaduk <kaduk@mit.edu> | 2012-07-31 16:12:27 -0400 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2012-08-29 14:50:20 -0400 |
commit | 023aac4a5d682ffeacc5121deaa771e08a5c9013 (patch) | |
tree | 5dadca0730177ce0efb138f4b100e852f413db9e /src | |
parent | 02499b9c31124d66cdc5fd5d650e38f8c408a984 (diff) | |
download | krb5-023aac4a5d682ffeacc5121deaa771e08a5c9013.tar.gz krb5-023aac4a5d682ffeacc5121deaa771e08a5c9013.tar.xz krb5-023aac4a5d682ffeacc5121deaa771e08a5c9013.zip |
Avoid a crash when attempting to change password
In some cases we could keep stack garbage in a local pointer
variable until the cleanup at the end of the function wherein
krb5_free_context() would choke on the invalid non-NULL value.
Initialize to zero to avoid the issue (should be written as NULL
but stick to the prevailing style).
ticket: 7329 (new)
queue: kfw
target_version: 1.10.4
tags: pullup
Diffstat (limited to 'src')
-rw-r--r-- | src/windows/leash/LeashView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/leash/LeashView.cpp b/src/windows/leash/LeashView.cpp index eedc5a2064..51777e4081 100644 --- a/src/windows/leash/LeashView.cpp +++ b/src/windows/leash/LeashView.cpp @@ -1034,7 +1034,7 @@ VOID CLeashView::OnMakeDefault() VOID CLeashView::OnChangePassword() { - krb5_context ctx; + krb5_context ctx = 0; krb5_ccache ccache = 0; krb5_principal princ = 0; char *pname = NULL; |