(get_reply_key*): don't expose freed memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21132 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -794,6 +794,7 @@ get_reply_key_win(krb5_context context,
|
||||
if (ret) {
|
||||
krb5_set_error_string(context, "PKINIT failed copying reply key");
|
||||
free(*key);
|
||||
*key = NULL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -856,6 +857,7 @@ get_reply_key(krb5_context context,
|
||||
if (ret) {
|
||||
krb5_set_error_string(context, "PKINIT failed copying reply key");
|
||||
free(*key);
|
||||
*key = NULL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user