diff --git a/src/server_config.c b/src/server_config.c index c5e68e10..56b03dc3 100644 --- a/src/server_config.c +++ b/src/server_config.c @@ -224,7 +224,6 @@ nc_server_config_get_ch_client(const struct lyd_node *node, struct nc_ch_client return 1; } - /* gets the ch_endpt struct based on node's location in the YANG data tree */ static int nc_server_config_get_ch_endpt(const struct lyd_node *node, struct nc_ch_endpt **ch_endpt) diff --git a/src/session_server_tls.c b/src/session_server_tls.c index 5f5c6ea5..a48ae452 100644 --- a/src/session_server_tls.c +++ b/src/session_server_tls.c @@ -312,7 +312,7 @@ nc_tls_cert_to_name(struct nc_session *session, struct nc_ctn *ctn_first, X509 * return -1; } - if (!session || !ctn_first || !cert) { + if (!session || !cert) { free(buf); return -1; }