Always clear ctx->al_entry in ntfs_attr_reinit_search_ctx().
(Logical change 1.583)edge.strict_endians
parent
b7d713c8f1
commit
75c1ed8b5d
|
@ -2044,6 +2044,11 @@ void ntfs_attr_reinit_search_ctx(ntfs_attr_search_ctx *ctx)
|
|||
/* Sanity checks are performed elsewhere. */
|
||||
ctx->attr = (ATTR_RECORD*)((u8*)ctx->mrec +
|
||||
le16_to_cpu(ctx->mrec->attrs_offset));
|
||||
/*
|
||||
* This needs resetting due to ntfs_external_attr_find() which
|
||||
* can leave it set despite having zeroed ctx->base_ntfs_ino.
|
||||
*/
|
||||
ctx->al_entry = NULL;
|
||||
return;
|
||||
} /* Attribute list. */
|
||||
ntfs_attr_init_search_ctx(ctx, ctx->base_ntfs_ino, ctx->base_mrec);
|
||||
|
|
Loading…
Reference in New Issue