mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-07-31 07:38:39 +03:00
Nil pointer crash fix.
This commit is contained in:
parent
1d64f59c0c
commit
5965172183
@ -171,6 +171,9 @@ func (c *Client) Rename(name string) {
|
||||
|
||||
// Fingerprint returns the fingerprint
|
||||
func (c *Client) Fingerprint() string {
|
||||
if c.Conn.Permissions == nil {
|
||||
return ""
|
||||
}
|
||||
return c.Conn.Permissions.Extensions["fingerprint"]
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user