[driver] fixing dereference of upcall entry after free if we fail to get security context
This commit is contained in:
parent
25cf92a60b
commit
2d252266c2
1 changed files with 2 additions and 2 deletions
|
|
@ -1237,7 +1237,7 @@ NTSTATUS nfs41_UpcallCreate(
|
||||||
print_error("SeCreateClientSecurityFromSubjectContext "
|
print_error("SeCreateClientSecurityFromSubjectContext "
|
||||||
"failed with %x\n", status);
|
"failed with %x\n", status);
|
||||||
RxFreePool(entry);
|
RxFreePool(entry);
|
||||||
}
|
} else
|
||||||
entry->psec_ctx = &entry->sec_ctx;
|
entry->psec_ctx = &entry->sec_ctx;
|
||||||
SeReleaseSubjectContext(&sec_ctx);
|
SeReleaseSubjectContext(&sec_ctx);
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue