ugh tracking down a nil pointer problem

This commit is contained in:
Matthew Kanwisher 2013-12-16 17:52:44 -05:00
parent f19ccd5e15
commit 2c41892430

View File

@ -221,6 +221,13 @@ func (n *V1ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
return err return err
} }
if am.Version == nil {
//UGH not entirely sure how this could possibly happen, going to put this in for now
//TODO investigate if this ever is really happening
am.Version = &VersionStruct{ProductMajorVersion: uint8(5), ProductMinorVersion: uint8(1), ProductBuild: uint16(2600), NTLMRevisionCurrent: uint8(15)}
log.Crit("Nil version in ntlmv1")
}
err = n.calculateKeys(am.Version.NTLMRevisionCurrent) err = n.calculateKeys(am.Version.NTLMRevisionCurrent)
if err != nil { if err != nil {
return err return err