s3:winbindd_cm: invalidate connection if cm_connect_netlogon() fails
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Mar 2010 14:25:47 +0000 (15:25 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 29 Mar 2010 16:11:18 +0000 (18:11 +0200)
metze

source3/winbindd/winbindd_cm.c

index c5f93728ba2711035ddb21f931b339950d4bd2e1..0f0d5f810719e3d448c3e0aeb79610e128f10156 100644 (file)
@@ -2464,8 +2464,8 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
                DEBUG(3, ("Could not open schannel'ed NETLOGON pipe. Error "
                          "was %s\n", nt_errstr(result)));
 
-               /* make sure we return something besides OK */
-               return !NT_STATUS_IS_OK(result) ? result : NT_STATUS_PIPE_NOT_AVAILABLE;
+               invalidate_cm_connection(conn);
+               return result;
        }
 
        /*