svn commit: samba r5845 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Thu Mar 17 01:19:51 GMT 2005


Author: jra
Date: 2005-03-17 01:19:50 +0000 (Thu, 17 Mar 2005)
New Revision: 5845

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

Log:
Fix typo. Add cast for bug #2464 reported by jason at ncac.gwu.edu.
Jeremy.

Modified:
   trunk/source/smbd/trans2.c


Changeset:
Modified: trunk/source/smbd/trans2.c
===================================================================
--- trunk/source/smbd/trans2.c	2005-03-17 01:19:49 UTC (rev 5844)
+++ trunk/source/smbd/trans2.c	2005-03-17 01:19:50 UTC (rev 5845)
@@ -143,7 +143,7 @@
 	} else {
 		pea->name = ea_name;
 	}
-	pea->value.data = val;
+	pea->value.data = (unsigned char *)val;
 	pea->value.length = (size_t)sizeret;
 	return True;
 }
@@ -1492,7 +1492,7 @@
 
 	if(numentries == 0) {
 		dptr_close(&dptr_num);
-		if (protocol < PROTOCOL_NT1) {
+		if (Protocol < PROTOCOL_NT1) {
 			return ERROR_DOS(ERRDOS,ERRnofiles);
 		} else {
 			return ERROR_BOTH(NT_STATUS_NO_SUCH_FILE,ERRDOS,ERRbadfile);



More information about the samba-cvs mailing list