Browse Source

Fixed nil pointer check.

pull/28/head
Simon Eisenmann 11 years ago
parent
commit
ffaa2ec18f
  1. 2
      src/app/spreed-speakfreely-server/users.go

2
src/app/spreed-speakfreely-server/users.go

@ -159,7 +159,7 @@ func (uh *UsersCertificateHandler) makeTemplate(commonName string) (*x509.Certif
func (uh *UsersCertificateHandler) Get(request *http.Request) (userid string, err error) { func (uh *UsersCertificateHandler) Get(request *http.Request) (userid string, err error) {
if len(request.TLS.VerifiedChains) == 0 { if request.TLS == nil || len(request.TLS.VerifiedChains) == 0 {
return return
} }
chain := request.TLS.VerifiedChains[0] chain := request.TLS.VerifiedChains[0]

Loading…
Cancel
Save