krb5: initialize tgs_req buffer in init_tgs_req()
Initialize the tgs_req buffer in init_tgs_req() so pointers are valid when freed. Fixes regression introduced when Apple TGS-REQ FAST code was imported in PR #805.
This commit is contained in:
@@ -153,7 +153,7 @@ init_tgs_req (krb5_context context,
|
|||||||
krb5_error_code ret = 0;
|
krb5_error_code ret = 0;
|
||||||
krb5_data tgs_req;
|
krb5_data tgs_req;
|
||||||
|
|
||||||
memset(t, 0, sizeof(*t));
|
krb5_data_zero(&tgs_req);
|
||||||
memset(t, 0, sizeof(*t));
|
memset(t, 0, sizeof(*t));
|
||||||
|
|
||||||
t->pvno = 5;
|
t->pvno = 5;
|
||||||
|
Reference in New Issue
Block a user