[NTFS] When reading $I30 attribute fails, stop the rename operation.

This makes the function return the error instead of continuing and
performing use-after-frees operations.
This is likely to be a forgotten return!

CID 1434254, 1434268
This commit is contained in:
Pierre Schweitzer 2018-04-14 11:39:33 +02:00
parent 1551d2b136
commit c7bba39afc
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -1662,6 +1662,7 @@ UpdateFileNameRecord(PDEVICE_EXTENSION Vcb,
ExFreePoolWithTag(IndexRecord, TAG_NTFS);
ReleaseAttributeContext(IndexRootCtx);
ExFreeToNPagedLookasideList(&Vcb->FileRecLookasideList, MftRecord);
return Status;
}
IndexRoot = (PINDEX_ROOT_ATTRIBUTE)IndexRecord;