Skip to content

Commit 3cb6385

Browse files
committed
server_config: reverted some changes due to PR review
1 parent d5bb239 commit 3cb6385

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/server_config.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3232,12 +3232,8 @@ nc_server_config_create_cert_to_name(const struct lyd_node *node, struct nc_serv
32323232

32333233
assert(!strcmp(LYD_NAME(node), "cert-to-name"));
32343234

3235-
/* find the list's key */
3236-
if (lyd_find_path(node, "id", 0, &n)) {
3237-
ERR(NULL, "Missing CTN id.");
3238-
ret = 1;
3239-
goto cleanup;
3240-
}
3235+
/* find the list's key - ignore result using assert of reference argument instead */
3236+
lyd_find_path(node, "id", 0, &n);
32413237
assert(n);
32423238
id = ((struct lyd_node_term *)n)->value.uint32;
32433239

0 commit comments

Comments
 (0)