1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

r19065: No functional change, just a trivial simplification

This commit is contained in:
Volker Lendecke 2006-10-04 16:18:36 +00:00 committed by Gerald (Jerry) Carter
parent 27b063078d
commit 45628f71cf

View File

@ -634,7 +634,9 @@ static void remove_client(struct winbindd_cli_state *state)
{
/* It's a dead client - hold a funeral */
if (state != NULL) {
if (state == NULL) {
return;
}
/* Close socket */
@ -645,8 +647,8 @@ static void remove_client(struct winbindd_cli_state *state)
free_getent_state(state->getpwent_state);
free_getent_state(state->getgrent_state);
/* We may have some extra data that was not freed if the
client was killed unexpectedly */
/* We may have some extra data that was not freed if the client was
killed unexpectedly */
SAFE_FREE(state->response.extra_data.data);
@ -661,10 +663,8 @@ static void remove_client(struct winbindd_cli_state *state)
winbindd_remove_client(state);
TALLOC_FREE(state);
}
}
/* Shutdown client connection which has been idle for the longest time */
static BOOL remove_idle_client(void)