diff options
author | Jeremy Allison <jra@samba.org> | 2004-12-16 21:14:08 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-12-16 21:14:08 +0000 |
commit | d845024f062eedf47259c63e58806ec2bb9ef78a (patch) | |
tree | 23d81f90ca9580f14535e5774539dc8ca39ce840 /source/python | |
parent | b1cab9e285d3cb8ea181ccfcdb77306cb56e2fd8 (diff) | |
download | samba-d845024f062eedf47259c63e58806ec2bb9ef78a.tar.gz samba-d845024f062eedf47259c63e58806ec2bb9ef78a.tar.xz samba-d845024f062eedf47259c63e58806ec2bb9ef78a.zip |
r4238: More *alloc fixes.
Jeremy.
Diffstat (limited to 'source/python')
-rw-r--r-- | source/python/py_common.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/python/py_common.c b/source/python/py_common.c index 02d22bbdab5..66f35759c3d 100644 --- a/source/python/py_common.c +++ b/source/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; } |