Fix undefined and unused variables

Forgot to save the latest version...
This commit is contained in:
Herman Slatman
2023-09-21 18:15:03 +02:00
parent b6c95d7be2
commit 6d2d21e989

View File

@@ -336,7 +336,7 @@ func PKIOperation(ctx context.Context, req request) (Response, error) {
// default to ERROR_INTERNAL_ERROR: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d
errorCode := 0x0000054F
errorDescription := err.Error()
if notifyErr := auth.NotifyFailure(ctx, csr, transactionID); notifyErr != nil {
if notifyErr := auth.NotifyFailure(ctx, csr, transactionID, errorCode, errorDescription); notifyErr != nil {
// TODO(hs): ignore this error case? It's not critical if the notification fails; but logging it might be good
_ = notifyErr
}