mirror of
https://github.com/PretendoNetwork/nex-go.git
synced 2025-04-02 11:02:14 -04:00
fix(prudp): Check for matching user PID and ticket source PID
This commit is contained in:
parent
6ec50052cd
commit
f34f86f7b7
1 changed files with 4 additions and 0 deletions
|
@ -509,6 +509,10 @@ func (pep *PRUDPEndPoint) readKerberosTicket(payload []byte) ([]byte, types.PID,
|
||||||
return nil, 0, 0, err
|
return nil, 0, 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if userPID != ticket.SourcePID {
|
||||||
|
return nil, 0, 0, errors.New("User PID and ticket source PID mismatch")
|
||||||
|
}
|
||||||
|
|
||||||
_, err = checkDataStream.ReadUInt32LE() // * CID of secure server station url
|
_, err = checkDataStream.ReadUInt32LE() // * CID of secure server station url
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, 0, 0, err
|
return nil, 0, 0, err
|
||||||
|
|
Loading…
Add table
Reference in a new issue