Skip to content

Commit

Permalink
session server tls BUGFIX ctn endpt reference fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roman committed Oct 12, 2023
1 parent 4bc0ed8 commit b040f31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/server_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/session_server_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b040f31

Please sign in to comment.