mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-26 10:30:41 +00:00
nrf: Fix serving PLMN counter reset on NF register
NFProfile plmn_list returned from NRF overwrites the local serving PLMN configuration. Reset num_of_serving_plmn_id instead of the unused nf_instance->num_of_plmn_id to avoid stale accumulation. Issues: #4207
This commit is contained in:
parent
d1c5ece759
commit
81bb35c390
2 changed files with 1 additions and 11 deletions
10
README.md
10
README.md
|
|
@ -8,16 +8,6 @@ Please follow the [documentation](https://open5gs.org/open5gs/docs/) at [open5gs
|
|||
|
||||
If you find Open5GS useful for work, please consider supporting this Open Source project by [Becoming a sponsor](https://github.com/sponsors/acetcom). To manage the funding transactions transparently, you can donate through [OpenCollective](https://opencollective.com/open5gs).
|
||||
|
||||
<p align="center">
|
||||
<h3 align="center">Special Sponsor</h3>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a target="_blank" href="https://mobi.com">
|
||||
<img alt="special sponsor mobi" src="https://open5gs.org/assets/img/mobi-open5GS.png" width="400">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a target="_blank" href="https://open5gs.org/#sponsors">
|
||||
<img alt="sponsors" src="https://open5gs.org/assets/img/sponsors.svg">
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ void ogs_nnrf_nfm_handle_nf_register(
|
|||
nf_instance->time.heartbeat_interval = NFProfile->heart_beat_timer;
|
||||
|
||||
if (NFProfile->plmn_list) {
|
||||
nf_instance->num_of_plmn_id = 0;
|
||||
ogs_local_conf()->num_of_serving_plmn_id = 0;
|
||||
OpenAPI_list_for_each(NFProfile->plmn_list, node) {
|
||||
OpenAPI_plmn_id_t *PlmnId = node->data;
|
||||
if (PlmnId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue