Skip to content

Commit

Permalink
udp-notif UPDATE fix bad subscription id
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremie6wind committed Sep 15, 2023
1 parent 13779ff commit 3cd54aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netconf_subscribed_notifications.c
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ sub_ntf_terminate_sub(struct np2srv_sub_ntf *sub, struct nc_session *ncs)
sub_id_count = ATOMIC_LOAD_RELAXED(sub->sub_id_count);
for (idx = 0; idx < sub_id_count; ++idx) {
/* pass the lock to the notification CB, which removes its sub ID, the final one the whole sub */
sub_id = sub->sub_ids[0];
sub_id = sub->sub_ids[idx];
sub_ntf_cb_lock_pass(sub_id);
if (ncs) {
r = sr_unsubscribe_sub(np2srv.sr_notif_sub, sub_id);
Expand Down

0 comments on commit 3cd54aa

Please sign in to comment.