reset outdata
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23668 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -50,14 +50,18 @@ krb5_rd_priv(krb5_context context,
|
||||
krb5_keyblock *key;
|
||||
krb5_crypto crypto;
|
||||
|
||||
if (outbuf)
|
||||
krb5_data_zero(outbuf);
|
||||
krb5_data_zero(outbuf);
|
||||
|
||||
if ((auth_context->flags &
|
||||
(KRB5_AUTH_CONTEXT_RET_TIME | KRB5_AUTH_CONTEXT_RET_SEQUENCE)) &&
|
||||
outdata == NULL) {
|
||||
krb5_clear_error_string (context);
|
||||
return KRB5_RC_REQUIRED; /* XXX better error, MIT returns this */
|
||||
(KRB5_AUTH_CONTEXT_RET_TIME | KRB5_AUTH_CONTEXT_RET_SEQUENCE)))
|
||||
{
|
||||
if (outdata == NULL) {
|
||||
krb5_clear_error_string (context);
|
||||
return KRB5_RC_REQUIRED; /* XXX better error, MIT returns this */
|
||||
}
|
||||
/* if these fields are not present in the priv-part, silently
|
||||
return zero */
|
||||
memset(outdata, 0, sizeof(*outdata));
|
||||
}
|
||||
|
||||
memset(&priv, 0, sizeof(priv));
|
||||
@@ -165,9 +169,6 @@ krb5_rd_priv(krb5_context context,
|
||||
|
||||
if ((auth_context->flags &
|
||||
(KRB5_AUTH_CONTEXT_RET_TIME | KRB5_AUTH_CONTEXT_RET_SEQUENCE))) {
|
||||
/* if these fields are not present in the priv-part, silently
|
||||
return zero */
|
||||
memset(outdata, 0, sizeof(*outdata));
|
||||
if(part.timestamp)
|
||||
outdata->timestamp = *part.timestamp;
|
||||
if(part.usec)
|
||||
|
Reference in New Issue
Block a user