diff options
author | mav <mav@FreeBSD.org> | 2016-03-21 00:07:56 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2016-03-21 00:07:56 +0000 |
commit | 745a33b96e030e84eecf01c4ddbbd869f3c9d48e (patch) | |
tree | ab9c929c2a4d302c553560867b96ecc8643a0a80 /lib/libgssapi/gss_unseal.c | |
parent | 343f418e75909aacc538e7c8a224fd834e3c843f (diff) | |
download | FreeBSD-src-745a33b96e030e84eecf01c4ddbbd869f3c9d48e.zip FreeBSD-src-745a33b96e030e84eecf01c4ddbbd869f3c9d48e.tar.gz |
MFC r295125: MFV r294821:
6529 Properly handle updates of variably-sized SA entries.
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Ned Bass <bass6@llnl.gov>
Reviewed by: Tim Chase <tim@chase2k.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Author: Andriy Gapon <avg@icyb.net.ua>
illumos/illumos-gate@e7e978b1f75353cb29673af9b35453c20c2827bf
During the update process in sa_modify_attrs(), the sizes of existing
variably-sized SA entries are obtained from sa_lengths[]. The case where
a variably-sized SA was being replaced neglected to increment the index
into sa_lengths[], so subsequent variable-length SAs would be rewritten
with the wrong length. This patch adds the missing increment operation
so all variably-sized SA entries are stored with their correct lengths.
Another problem was that index into attr_desc[] was increased even when
an attribute was removed. If that attribute was not the last attribute,
then the last attribute was lost.
Diffstat (limited to 'lib/libgssapi/gss_unseal.c')
0 files changed, 0 insertions, 0 deletions