CESNET / libnetconf

C NETCONF library
Other
113 stars 83 forks source link

issue when initializing session monitoring #197

Closed ntadas closed 8 years ago

ntadas commented 8 years ago

Hi

If we connect two sessions, lest call it "session 1" and "session 2" and disconnect/connect session 1 the offset_next of the session 2 will not point to session 1, this causes a crash when disconnecting session 2.

Scenario:

Regards

michalvasko commented 8 years ago

Hi, I fixed one problem I found when testing it, but what you are describing does not really make sense, if session 2 is the last connected session, it will always have offset_next 0. Please verify it works for you or provide an exact use-case when something wrong happens.

Regards, Michal

ntadas commented 8 years ago

Hi

right bad description from my side, sorry. the problem was with the offset_prev, this one is used in nc_session_monitor_remove. I'll test it but from the fix you did this is the problem I was referring to.

thanks a lot. Best Regards