summaryrefslogtreecommitdiff
path: root/source3/python
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-12-16 21:14:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:39 -0500
commit09969123e1e84ef0867bfade150e9e5c66e6ef5f (patch)
tree6436eac40b7c295f4c8f2912e47535f6c3f55e92 /source3/python
parent54fdd5c7dc98e9039d94bc6b45ee31cb1d363eac (diff)
downloadsamba-09969123e1e84ef0867bfade150e9e5c66e6ef5f.tar.gz
samba-09969123e1e84ef0867bfade150e9e5c66e6ef5f.tar.bz2
samba-09969123e1e84ef0867bfade150e9e5c66e6ef5f.zip
r4238: More *alloc fixes.
Jeremy. (This used to be commit 4d971806f4e4f5523227e378125d5601a5df271d)
Diffstat (limited to 'source3/python')
-rw-r--r--source3/python/py_common.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/python/py_common.c b/source3/python/py_common.c
index 02d22bbdab..66f35759c3 100644
--- a/source3/python/py_common.c
+++ b/source3/python/py_common.c
@@ -144,34 +144,34 @@ BOOL py_parse_creds(PyObject *creds, char **username, char **domain,
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 @@ struct cli_state *open_pipe_creds(char *server, PyObject *creds,
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;
}