diff --git a/decode_response.go b/decode_response.go index a322d5c..025d1e3 100644 --- a/decode_response.go +++ b/decode_response.go @@ -176,7 +176,7 @@ func (sp *SAMLServiceProvider) decryptAssertions(el *etree.Element) error { doc, _, err := parseResponse(raw) if err != nil { - return fmt.Errorf("unable to create element from decrypted assertion bytes: %v", derr) + return fmt.Errorf("unable to create element from decrypted assertion bytes: %v", err) } // Replace the original encrypted assertion with the decrypted one. @@ -446,4 +446,4 @@ func (sp *SAMLServiceProvider) ValidateEncodedLogoutResponsePOST(encodedResponse } return decodedResponse, nil -} \ No newline at end of file +}