diff --git a/libntfs-3g/compress.c b/libntfs-3g/compress.c index 07f17fd9..f7fb4311 100644 --- a/libntfs-3g/compress.c +++ b/libntfs-3g/compress.c @@ -164,6 +164,7 @@ static void ntfs_new_node (struct COMPRESS_CONTEXT *pctx, if ((pctx->match_length = i) > mxl) { i = pctx->rson[pp]; pctx->rson[r] = i; + pctx->dad[i] = r; i = pctx->lson[pp]; pctx->lson[r] = i; pctx->dad[i] = r;