3
0
mirror of https://github.com/ergochat/ergo.git synced 2026-03-02 05:18:12 +01:00
Nil dereference from CS DEOP and EXTJWT; no security implications
This commit is contained in:
Shivaram Lingamneni 2026-03-01 09:45:21 -08:00 committed by GitHub
parent 23e1ef384c
commit b120806fd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -551,7 +551,11 @@ func (channel *Channel) ClientStatus(client *Client) (present bool, joinTimeSecs
channel.stateMutex.RLock()
defer channel.stateMutex.RUnlock()
memberData, present := channel.members[client]
return present, time.Unix(0, memberData.joinTime).Unix(), memberData.modes.AllModes()
if present {
return present, time.Unix(0, memberData.joinTime).Unix(), memberData.modes.AllModes()
} else {
return
}
}
// helper for persisting channel-user modes for always-on clients;