svn commit: samba r16591 - in branches/SAMBA_3_0/source/smbd: .

jra at samba.org jra at samba.org
Wed Jun 28 01:25:30 GMT 2006


Author: jra
Date: 2006-06-28 01:25:29 +0000 (Wed, 28 Jun 2006)
New Revision: 16591

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

Log:
Belt and braces approach to shut Klocwork up - bug #2001.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/map_username.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/map_username.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/map_username.c	2006-06-28 01:25:24 UTC (rev 16590)
+++ branches/SAMBA_3_0/source/smbd/map_username.c	2006-06-28 01:25:29 UTC (rev 16591)
@@ -82,7 +82,7 @@
 
 		/* should be either no lines or a single line with the mapped username */
 
-		if (numlines) {
+		if (numlines && qlines) {
 			DEBUG(3,("Mapped user %s to %s\n", user, qlines[0] ));
 			fstrcpy( user, qlines[0] );
 		}



More information about the samba-cvs mailing list