mirror of
https://github.com/openkmip/pykmip
synced 2025-12-15 15:53:36 +00:00
Fixing server failure on missing request credential
This change fixes a bug in the KMIP server engine where a missing request credential would cause the session to prematurely terminate. Credential handling may require session termination for missing credentials, but that decision should be made by credential processing not request processing. Fixes #193
This commit is contained in:
@@ -249,7 +249,10 @@ class KmipEngine(object):
|
||||
)
|
||||
|
||||
# Process the authentication credentials
|
||||
auth_credentials = header.authentication.credential
|
||||
if header.authentication:
|
||||
auth_credentials = header.authentication.credential
|
||||
else:
|
||||
auth_credentials = None
|
||||
self._verify_credential(auth_credentials, credential)
|
||||
|
||||
# Process the batch error continuation option
|
||||
|
||||
Reference in New Issue
Block a user