mirror of
https://github.com/minio/minio.git
synced 2025-02-02 17:35:58 -05:00
fix: crash in serverInfo handler when ldap is configured (#9123)
This commit is contained in:
parent
c55aeaf814
commit
cfd12914e1
@ -1409,10 +1409,10 @@ func (a adminAPIHandlers) ServerInfoHandler(w http.ResponseWriter, r *http.Reque
|
|||||||
} else if ldapConn == nil {
|
} else if ldapConn == nil {
|
||||||
ldap.Status = "Not Configured"
|
ldap.Status = "Not Configured"
|
||||||
} else {
|
} else {
|
||||||
|
// Close ldap connection to avoid leaks.
|
||||||
|
ldapConn.Close()
|
||||||
ldap.Status = "online"
|
ldap.Status = "online"
|
||||||
}
|
}
|
||||||
// Close ldap connection to avoid leaks.
|
|
||||||
defer ldapConn.Close()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log, audit := fetchLoggerInfo(cfg)
|
log, audit := fetchLoggerInfo(cfg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user