Merge pull request #837 from openziti/fix-panic

Fix panic caused by missing return on error
This commit is contained in:
Paul Lorenz
2021-11-17 10:34:23 -05:00
committed by GitHub
@@ -173,6 +173,7 @@ func (ro *AuthRouter) authHandler(ae *env.AppEnv, rc *response.RequestContext, h
if err != nil {
logger.WithField("cause", err).Error("loading session by id resulted in an error")
rc.RespondWithApiError(errorz.NewUnauthorized())
return
}
ae.GetHandlers().PostureResponse.SetSdkInfo(identity.Id, sessionId, identity.SdkInfo)