s3:winbindd: use invalidate_cm_connection() to kill the netlogon connection
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Sep 2013 16:35:39 +0000 (18:35 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 Jan 2014 11:47:12 +0000 (12:47 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/winbindd/winbindd_dual.c

index 64af5717671180722e5087183605f646a882faec..b26cdca4e6974ea38d86f357414713d7dbbe1dce 100644 (file)
@@ -1056,7 +1056,7 @@ static void machine_password_change_handler(struct tevent_context *ctx,
                         "password was changed and we didn't know it. "
                         "Killing connections to domain %s\n",
                         child->domain->name));
-               TALLOC_FREE(child->domain->conn.netlogon_pipe);
+               invalidate_cm_connection(&child->domain->conn);
        }
 
        if (!calculate_next_machine_pwd_change(child->domain->name,