svn commit: samba r4238 - in branches/SAMBA_3_0/source/python: .

jra at samba.org jra at samba.org
Thu Dec 16 21:14:08 GMT 2004


Author: jra
Date: 2004-12-16 21:14:08 +0000 (Thu, 16 Dec 2004)
New Revision: 4238

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

Log:
More *alloc fixes.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/python/py_common.c


Changeset:
Modified: branches/SAMBA_3_0/source/python/py_common.c
===================================================================
--- branches/SAMBA_3_0/source/python/py_common.c	2004-12-16 21:12:35 UTC (rev 4237)
+++ branches/SAMBA_3_0/source/python/py_common.c	2004-12-16 21:14:08 UTC (rev 4238)
@@ -144,34 +144,34 @@
 		password_obj = PyDict_GetItemString(creds, "password");
 
 		if (!username_obj) {
-			*errstr = strdup("no username field in credential");
+			*errstr = SMB_STRDUP("no username field in credential");
 			return False;
 		}
 
 		if (!domain_obj) {
-			*errstr = strdup("no domain field in credential");
+			*errstr = SMB_STRDUP("no domain field in credential");
 			return False;
 		}
 
 		if (!password_obj) {
-			*errstr = strdup("no password field in credential");
+			*errstr = SMB_STRDUP("no password field in credential");
 			return False;
 		}
 
 		/* Check type of required fields */
 
 		if (!PyString_Check(username_obj)) {
-			*errstr = strdup("username field is not string type");
+			*errstr = SMB_STRDUP("username field is not string type");
 			return False;
 		}
 
 		if (!PyString_Check(domain_obj)) {
-			*errstr = strdup("domain field is not string type");
+			*errstr = SMB_STRDUP("domain field is not string type");
 			return False;
 		}
 
 		if (!PyString_Check(password_obj)) {
-			*errstr = strdup("password field is not string type");
+			*errstr = SMB_STRDUP("password field is not string type");
 			return False;
 		}
 
@@ -226,7 +226,7 @@
 		username, domain, password, 0, Undefined, NULL);
 	
 	if (!NT_STATUS_IS_OK(result)) {
-		*errstr = strdup("error connecting to IPC$ pipe");
+		*errstr = SMB_STRDUP("error connecting to IPC$ pipe");
 		return NULL;
 	}
 



More information about the samba-cvs mailing list