mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Only send configuration updates to the channel if there is a channel to send it to - otherwise it hangs forever...
This commit is contained in:
parent
ef96dd74e5
commit
c109af8d88
1 changed files with 7 additions and 6 deletions
|
|
@ -192,7 +192,9 @@ func (server *Server) setConfigPassword(key, password string) {
|
|||
// Could be racy, but shouldn't really matter...
|
||||
val := "sha1$" + salt + "$" + digest
|
||||
server.cfg.Set(key, val)
|
||||
if server.cfgUpdate != nil {
|
||||
server.cfgUpdate <- &KeyValuePair{Key: key, Value: val}
|
||||
}
|
||||
}
|
||||
|
||||
// Set password as the new SuperUser password
|
||||
|
|
@ -550,13 +552,12 @@ func (server *Server) handleAuthenticate(client *Client, msg *Message) {
|
|||
if auth.Password == nil {
|
||||
client.RejectAuth(mumbleproto.Reject_WrongServerPW, "Invalid server password")
|
||||
return
|
||||
} else {
|
||||
}
|
||||
if !server.checkServerPassword(*auth.Password) {
|
||||
client.RejectAuth(mumbleproto.Reject_WrongServerPW, "Invalid server password")
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Setup the cryptstate for the client.
|
||||
err = client.crypt.GenerateKey(client.CryptoMode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue