Set persistent->ctx pointer on HNB REGISTER REQ

The previous commit was missing the assignment of hnb_persistent->ctx
during successful HNB REGISTER REQ.

Related: SYS#6773
Fixes: Change-Id Ife89a7a206836bd89334d19d3cf8c92969dd74de
Change-Id: I18fe0e5aa968a1095c72e6bf32d08b031b342ac6
This commit is contained in:
Harald Welte 2024-03-12 21:32:23 +01:00
parent 7ec5cb7280
commit 101a9c7e21
1 changed files with 1 additions and 0 deletions

View File

@ -441,6 +441,7 @@ static int hnbgw_rx_hnb_register_req(struct hnb_context *ctx, ANY_t *in)
return hnbgw_tx_hnb_register_rej(ctx);
}
ctx->persistent = hnbp;
hnbp->ctx = ctx;
llist_for_each_entry_safe(hnb, tmp, &g_hnbgw->hnb_list, list) {