svn commit: samba r17462 - in branches/SAMBA_3_0/source/nsswitch: .

idra at samba.org idra at samba.org
Tue Aug 8 18:38:34 GMT 2006


Author: idra
Date: 2006-08-08 18:38:33 +0000 (Tue, 08 Aug 2006)
New Revision: 17462

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17462

Log:

Fix a cut&paste bug that caused us to return a null SID on some error conditions


Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_async.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_async.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_async.c	2006-08-08 17:34:51 UTC (rev 17461)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_async.c	2006-08-08 18:38:33 UTC (rev 17462)
@@ -1595,6 +1595,12 @@
 		return;
 	}
 
+	if (response->result != WINBINDD_OK) {
+		DEBUG(5, ("gid2sid returned an error\n"));
+		cont(private_data, False, NULL);
+		return;
+	}
+
 	cont(private_data, True, response->data.sid.sid);
 }
 



More information about the samba-cvs mailing list