CHANGE libnetconf2 api changes
diff --git a/src/netopeerguid.c b/src/netopeerguid.c
index e31fa98..3664411 100644
--- a/src/netopeerguid.c
+++ b/src/netopeerguid.c
@@ -1141,7 +1141,7 @@
/* if connected successful, add session to the list */
if (session != NULL) {
if ((locked_session = calloc(1, sizeof(struct session_with_mutex))) == NULL || pthread_mutex_init (&locked_session->lock, NULL) != 0) {
- nc_session_free(session);
+ nc_session_free(session, NULL);
session = NULL;
free(locked_session);
locked_session = NULL;
@@ -1156,7 +1156,7 @@
/* get exclusive access to sessions_list (conns) */
DEBUG("LOCK wrlock %s", __func__);
if (pthread_rwlock_wrlock(&session_lock) != 0) {
- nc_session_free(session);
+ nc_session_free(session, NULL);
free(locked_session);
ERROR("Error while locking rwlock: %d (%s)", errno, strerror(errno));
return 0;
@@ -1211,7 +1211,7 @@
locked_session->ntfc_subscribed = 0;
locked_session->closed = 1;
if (locked_session->session != NULL) {
- nc_session_free(locked_session->session);
+ nc_session_free(locked_session->session, NULL);
locked_session->session = NULL;
}
DEBUG("session closed.");
@@ -2953,7 +2953,7 @@
if (temp_session != NULL) {
prepare_status_message(locked_session, temp_session);
DEBUG("closing temporal NC session.");
- nc_session_free(temp_session);
+ nc_session_free(temp_session, NULL);
temp_session = NULL;
} else {
DEBUG("Reload hello failed due to channel establishment");
@@ -3104,7 +3104,7 @@
DEBUG("UNLOCK mutex %s", __func__);
pthread_mutex_unlock(&ntf_history_lock);
DEBUG("closing temporal NC session.");
- nc_session_free(temp_session);
+ nc_session_free(temp_session, NULL);
temp_session = NULL;
} else {
DEBUG("UNLOCK mutex %s", __func__);