Ticket #4: packet_length.patch

File packet_length.patch, 383 bytes (added by farshad@parspooyesh.com, 3 years ago)
  • pyrad/packet.py

    old new  
    305308                if len(packet)!=length: 
    306309                        raise PacketError, "Packet has invalid length" 
    307310                if length>8192: 
    308                         raise PacketError, "Packet length is too long (%s)" % leng 
     311                        raise PacketError, "Packet length is too long (%s)"%length 
    309312 
    310313                self.clear() 
    311314