Patch level : 2.0 518
Files correlati : authoriz.exe Ricompilazione Demo : [ ] Commento : Accettava un utente in meno del massimo previsto sulla chiave di protezione. git-svn-id: svn://10.65.10.50/trunk@11304 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									7df1190f34
								
							
						
					
					
						commit
						dc714c5879
					
				@ -729,7 +729,7 @@ void TAuthorizationServer::ProcessUserLogin(wxString cmd, wxSocketBase& sock)
 | 
			
		||||
		}
 | 
			
		||||
		else
 | 
			
		||||
		{
 | 
			
		||||
			if (m_Users.GetCount() >= m_Dongle.MaxUsers())
 | 
			
		||||
      if (m_Users.Find(sock, strUser) == NULL && m_Users.GetCount() >= m_Dongle.MaxUsers())
 | 
			
		||||
	  		num = 0;
 | 
			
		||||
			else
 | 
			
		||||
			{
 | 
			
		||||
 | 
			
		||||
@ -299,7 +299,7 @@ unsigned long TEutronFooter::checksum(bool set)
 | 
			
		||||
  
 | 
			
		||||
  unsigned long cs = 0;
 | 
			
		||||
  for (unsigned short i = 0; i < len; i++, ptr++)
 | 
			
		||||
    cs += *ptr | ~(*ptr << 8);
 | 
			
		||||
    cs += *ptr | ~(short(*ptr << 8));
 | 
			
		||||
  if (set) _checksum = cs;
 | 
			
		||||
  return cs;  
 | 
			
		||||
}
 | 
			
		||||
@ -407,7 +407,7 @@ bool TDongle::already_programmed() const
 | 
			
		||||
      
 | 
			
		||||
    unsigned long cs = 0;
 | 
			
		||||
    for (byte* ptr = (byte*)_eprom; ptr < (byte*)&eh->_checksum; ptr++)
 | 
			
		||||
      cs += *ptr | ~(*ptr << 8);
 | 
			
		||||
      cs += *ptr | ~(short(*ptr << 8));
 | 
			
		||||
    if (eh->_checksum != cs)  
 | 
			
		||||
      return false;   // Malicious programming!
 | 
			
		||||
  }   
 | 
			
		||||
@ -885,7 +885,7 @@ bool TDongle::burn_eutron()
 | 
			
		||||
  
 | 
			
		||||
  unsigned long cs = 0;
 | 
			
		||||
  for (unsigned char* ptr = (unsigned char*)_eprom; ptr < (unsigned char*)&eh->_checksum; ptr++)
 | 
			
		||||
    cs += *ptr | ~(*ptr << 8);
 | 
			
		||||
    cs += *ptr | ~(short(*ptr << 8));
 | 
			
		||||
  eh->_checksum = cs;
 | 
			
		||||
  
 | 
			
		||||
  const unsigned short otb = sizeof(TEutronHeader) / 2;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user