From f00c6c85612d954ceeb9fd9fa37c91fabd923f6d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 19 Aug 2011 20:55:41 -0700 Subject: Always remove the alarm before changing the handler, not the other way around. --- source3/lib/smbldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/smbldap.c') diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index 7410620c6d..fc4dff5764 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -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; } -- cgit