Commit: e2b66089348c9f1083554cdf49710ddbf28c3942
Parent: 6baade2306503ffcabb8388faa7b9ef5bd2250d3
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2020-01-14 16:32:23
Tree: 2460b3f9f1467ca59a575647dd5e00ad9e62f119

mesh: Fix wholesale deletion of appkeys bound to a netkey When a netkey is deleted all the appkeys bound to this key has to be deleted as well. This fixes app_key queue manipulation to avoid issues caused by modifying the queue while iterating over it: instead of iteration over all the entries, find a first bound key, delete it, find next... and so on, until there are no bound keys left in the app_keys queue.

Diffstat

M mesh/appkey.c | 26 +++++++++++++++++++++- - - - -

1 files changed, 21 insertions(+), 5 deletions(-)

View Full Diff | Patch