alloc seq_number so that it can be freed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2605 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -53,7 +53,6 @@ krb5_build_authenticator (krb5_context context,
|
||||
char buf[1024];
|
||||
size_t len;
|
||||
krb5_error_code ret;
|
||||
unsigned seq_number;
|
||||
|
||||
auth->authenticator_vno = 5;
|
||||
copy_Realm(&cred->client->realm, &auth->crealm);
|
||||
@@ -74,8 +73,8 @@ krb5_build_authenticator (krb5_context context,
|
||||
krb5_generate_seq_number (context,
|
||||
&cred->session,
|
||||
&auth_context->local_seqnumber);
|
||||
seq_number = auth_context->local_seqnumber;
|
||||
auth->seq_number = &seq_number;
|
||||
ALLOC(auth->seq_number, 1);
|
||||
*auth->seq_number = auth_context->local_seqnumber;
|
||||
} else
|
||||
auth->seq_number = NULL;
|
||||
auth->authorization_data = NULL;
|
||||
|
Reference in New Issue
Block a user