Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix removal of SA in sa_modify_attrs()
The sa_modify_attrs() function can add, remove or replace an SA. The main loop in the function uses the index "i" to iterate over the existing SAs and uses the index "j" for writing them into a new buffer bia SA_ADD_BULK_ATTR(). The write index, "j" is incremented on remove (SA_REMOVE) operations which leads to a corruption in the new SA buffer. This patch remove the increment for SA_REMOVE operations.
- Loading branch information