Changeset 1051

Show
Ignore:
Timestamp:
09/09/07 14:12:25 (15 months ago)
Author:
wichert
Message:

Test against the authenticator in the packet: the authenticator in the object could be the authenticator of the packet for which we are generating a reply

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pyrad/packet.py

    r1050 r1051  
    259259                        rawreply[20:] + self.secret).digest() 
    260260 
    261                 if hash!=reply.authenticator: 
     261                if hash!=rawreply[4:20]: 
    262262                        return False 
    263263