CESNET / libnetconf

C NETCONF library
Other
113 stars 84 forks source link

Segmention fault in function nc_session_receive #174

Closed BanuPrakashReddy closed 8 years ago

BanuPrakashReddy commented 8 years ago

Hi,

If nc_session_receive function is called with session parameter as NULL. Looks like it crashes because we are trying to dereference session parameter to unlock pthread mutex.

Somehow in my testing nc_session_receive function is called with session as NULL.

Below are the logs:

Mar 16 07:42:52 localhost netopeer-server[1705]: Invalid session to receive data. Mar 16 07:42:52 localhost root: process netopeer-server, pid=1705, signal 11 generates coredump...

BanuPrakashReddy commented 8 years ago

This is not an issue any more in the latest master branch. Closing the issue

Thanks, Banu Prakash