Skip to content

Commit 4801a7f

Browse files
committed
parser lyb BUGFIX invalid pointer dereference
1 parent 74de8c1 commit 4801a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser_lyb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ lyd_parse_lyb(const struct ly_ctx *ctx, const struct lysc_ext_instance *ext, str
16101610

16111611
cleanup:
16121612
/* there should be no unres stored if validation should be skipped */
1613-
assert(!(parse_opts & LYD_PARSE_ONLY) || (!lybctx->node_types.count && !lybctx->meta_types.count &&
1613+
assert(!lybctx || !(parse_opts & LYD_PARSE_ONLY) || (!lybctx->node_types.count && !lybctx->meta_types.count &&
16141614
!lybctx->node_when.count));
16151615

16161616
if (rc) {

0 commit comments

Comments
 (0)