ugh tracking down a nil pointer problem
This commit is contained in:
		
							parent
							
								
									f19ccd5e15
								
							
						
					
					
						commit
						2c41892430
					
				| @ -221,6 +221,13 @@ func (n *V1ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e | ||||
| 		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) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user