Skip to content

Commit ca834a8

Browse files
committed
Fixed case of multiple deviation bug for non-orig pointer
See: [Multiple deviations to same grouping when CLICON_YANG_USE_ORIGINAL doesnt work](#629)
1 parent 2b4f80b commit ca834a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/src/clixon_yang.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,6 @@ yang_print_cbuf(cbuf *cb,
26352635
int
26362636
yang_deviation(yang_stmt *ys,
26372637
void *arg)
2638-
26392638
{
26402639
int retval = -1;
26412640
char *nodeid;
@@ -2740,7 +2739,7 @@ yang_deviation(yang_stmt *ys,
27402739
}
27412740
break;
27422741
}
2743-
if (_yang_use_orig && yang_orig_get(ytarget) != NULL)
2742+
if (_yang_use_orig && yang_orig_get(ytarget) != NULL && uses_orig_ptr(kw))
27442743
;
27452744
else {
27462745
/* Remove old */

0 commit comments

Comments
 (0)