8285431: Assertion in NativeGSSContext constructor

Reviewed-by: djelinski, valeriep
This commit is contained in:
Xue-Lei Andrew Fan 2022-04-23 14:28:18 +00:00
parent 357b1b18c2
commit e9d604a3e5

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -237,7 +237,7 @@ class NativeGSSContext implements GSSContextSpi {
// Constructor for imported context
// Warning: called by NativeUtil.c
NativeGSSContext(long pCtxt, GSSLibStub stub) throws GSSException {
assert(pContext != 0);
assert(pCtxt != 0);
pContext = pCtxt;
cStub = stub;