krb5: Actually 0 padding
When we decide we need to zero the padding iovec, do so with 0, not with the length that we've determined. This had no effect because we zero the padding properly later, but it should be fixed, so that things still work when the later memset() goes away.
This commit is contained in:

committed by
Jeffrey Altman

parent
550067f6d0
commit
c45c0d3c66
@@ -1545,7 +1545,7 @@ iov_pad_validate(const struct _krb5_encryption_type *et,
|
||||
return KRB5_BAD_MSIZE;
|
||||
piv->data.length = pad_sz;
|
||||
if (pad_sz)
|
||||
memset(piv->data.data, pad_sz, pad_sz);
|
||||
memset(piv->data.data, 0, pad_sz);
|
||||
else
|
||||
piv = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user