1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Always remove the alarm before changing the handler, not the other way around.

This commit is contained in:
Jeremy Allison 2011-08-19 20:55:41 -07:00
parent ec07aca7d5
commit f00c6c8561

View File

@ -1410,8 +1410,8 @@ static int another_ldap_try(struct smbldap_state *ldap_state, int *rc,
}
no_next:
CatchSignal(SIGALRM, SIG_IGN);
alarm(0);
CatchSignal(SIGALRM, SIG_IGN);
ldap_state->last_use = now;
return False;
}