[driver] check for nul reparse point buffer

This commit is contained in:
Olga Kornievskaia 2012-03-12 17:31:23 -04:00
parent b4a1af0df6
commit e934484b1f

View file

@ -5727,6 +5727,11 @@ NTSTATUS nfs41_SetReparsePoint(
print_reparse_buffer(Reparse);
#endif
if (!Reparse) {
status = STATUS_INVALID_PARAMETER;
goto out;
}
if (Reparse->ReparseTag != IO_REPARSE_TAG_SYMLINK) {
status = STATUS_IO_REPARSE_TAG_MISMATCH;
goto out;