[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,8 +1237,8 @@ NTSTATUS nfs41_UpcallCreate(
|
|||
print_error("SeCreateClientSecurityFromSubjectContext "
|
||||
"failed with %x\n", status);
|
||||
RxFreePool(entry);
|
||||
}
|
||||
entry->psec_ctx = &entry->sec_ctx;
|
||||
} else
|
||||
entry->psec_ctx = &entry->sec_ctx;
|
||||
SeReleaseSubjectContext(&sec_ctx);
|
||||
} else
|
||||
entry->psec_ctx = clnt_sec_ctx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue