mirror of
https://github.com/nonoo/kappanhang.git
synced 2025-12-06 08:02:00 +01:00
Fix null pointer access
This commit is contained in:
parent
3c22b401e3
commit
35c0a40b1c
|
|
@ -89,6 +89,9 @@ func (s *controlStream) sendPktReauth(firstReauthSend bool) {
|
|||
}
|
||||
|
||||
func (s *controlStream) sendDisconnect() {
|
||||
if s.common.conn == nil {
|
||||
return
|
||||
}
|
||||
s.common.send([]byte{0x40, 0x00, 0x00, 0x00, 0x00, 0x00, byte(s.authSendSeq), byte(s.authSendSeq >> 8),
|
||||
byte(s.common.localSID >> 24), byte(s.common.localSID >> 16), byte(s.common.localSID >> 8), byte(s.common.localSID),
|
||||
byte(s.common.remoteSID >> 24), byte(s.common.remoteSID >> 16), byte(s.common.remoteSID >> 8), byte(s.common.remoteSID),
|
||||
|
|
|
|||
Loading…
Reference in a new issue