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:
Simon Wilkinson
2014-12-31 12:21:32 +00:00
committed by Jeffrey Altman
parent 550067f6d0
commit c45c0d3c66

View File

@@ -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;
}