commit | a3ffdbac75e6cbf5981910eae702afcaaf539b95 | [log] [tgz] |
---|---|---|
author | Tomas Cejka <cejkat@cesnet.cz> | Thu Mar 27 15:12:21 2014 +0100 |
committer | Tomas Cejka <cejkat@cesnet.cz> | Thu Mar 27 15:12:21 2014 +0100 |
tree | ba0551bfd3026e73a765a64ca9808797d3fbc875 | |
parent | edb3ab40cac322a02dcc7a33bae3042b11a65df4 [diff] [blame] |
reset after free
diff --git a/src/mod_netconf.c b/src/mod_netconf.c index 1cc502b..7a71e17 100644 --- a/src/mod_netconf.c +++ b/src/mod_netconf.c
@@ -288,6 +288,7 @@ /* use previous sid */ json_object_object_add(s->hello_message, "sid", json_object_new_string(old_sid)); free(old_sid); + old_sid = NULL; } else { /* we don't have old sid */ json_object_object_add(s->hello_message, "sid", json_object_new_string(nc_session_get_id(session)));