Parent: 07eaf8d2c08526c684b624a55e2e5733e63421aa
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2020-01-14 16:32:23
Tree: 636b998e03490731adfc145426d98700da1b9300
tools/mesh: Remove node's appkeys when deleting a netkey When a netkey is deleted from a remote node, all the appkeys bound to this netkey are expected 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 | tools/mesh/remote.c | | | 25 | +++++++++++++++++- - - - - - - - |
1 files changed, 17 insertions(+), 8 deletions(-)