Author: vlendec Date: 2006-05-23 22:35:08 +0000 (Tue, 23 May 2006) New Revision: 15845
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15845 Log: Ok. This was a tough one. If for some reason the tconX fails towards a domain controller the next time we connect this child ran into a segfault because it tried to reference a half-baked connection. Volker Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c trunk/source/nsswitch/winbindd_cm.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c =================================================================== --- branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c 2006-05-23 19:12:21 UTC (rev 15844) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c 2006-05-23 22:35:08 UTC (rev 15845) @@ -372,6 +372,7 @@ result = NT_STATUS_UNSUCCESSFUL; cli_shutdown(*cli); + *cli = NULL; goto done; } Modified: trunk/source/nsswitch/winbindd_cm.c =================================================================== --- trunk/source/nsswitch/winbindd_cm.c 2006-05-23 19:12:21 UTC (rev 15844) +++ trunk/source/nsswitch/winbindd_cm.c 2006-05-23 22:35:08 UTC (rev 15845) @@ -372,6 +372,7 @@ result = NT_STATUS_UNSUCCESSFUL; cli_shutdown(*cli); + *cli = NULL; goto done; }