outpost/ldap: fix panic when attempting to update without locked users mutex
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -45,8 +45,9 @@ func (ls *LDAPServer) Refresh() error { | ||||
| 		existing := ls.getCurrentProvider(provider.Pk) | ||||
| 		users := make(map[string]flags.UserFlags) | ||||
| 		if existing != nil { | ||||
| 			existing.boundUsersMutex.Unlock() | ||||
| 			existing.boundUsersMutex.RLock() | ||||
| 			users = existing.boundUsers | ||||
| 			existing.boundUsersMutex.RUnlock() | ||||
| 		} | ||||
|  | ||||
| 		providers[idx] = &ProviderInstance{ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer