summaryrefslogtreecommitdiff
path: root/source3/python
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-11-29 01:13:05 +0000
committerTim Potter <tpot@samba.org>2002-11-29 01:13:05 +0000
commit583652aa1a7a44671cd5a72eb47429649cd37a44 (patch)
treea09e98d5dc28025942f004be9354bc5dcd570b6d /source3/python
parent77c25dfbaae97802d5ca3258b874fe13d6270054 (diff)
downloadsamba-583652aa1a7a44671cd5a72eb47429649cd37a44.tar.gz
samba-583652aa1a7a44671cd5a72eb47429649cd37a44.tar.bz2
samba-583652aa1a7a44671cd5a72eb47429649cd37a44.zip
Another global_myname() fix from HEAD.
(This used to be commit 880083e2e614d88675f98a46cfe7acdaeb167db3)
Diffstat (limited to 'source3/python')
-rw-r--r--source3/python/py_smb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/python/py_smb.c b/source3/python/py_smb.c
index 41b8237a8a..efb7d0a5fd 100644
--- a/source3/python/py_smb.c
+++ b/source3/python/py_smb.c
@@ -61,7 +61,6 @@ static PyObject *py_smb_session_request(PyObject *self, PyObject *args,
static char *kwlist[] = { "called", "calling", NULL };
char *calling_name = NULL, *called_name;
struct nmb_name calling, called;
- extern pstring global_myname;
BOOL result;
if (!PyArg_ParseTupleAndKeywords(args, kw, "s|s", kwlist, &called_name,
@@ -69,7 +68,7 @@ static PyObject *py_smb_session_request(PyObject *self, PyObject *args,
return NULL;
if (!calling_name)
- calling_name = global_myname;
+ calling_name = global_myname();
make_nmb_name(&calling, calling_name, 0x00);
make_nmb_name(&called, called_name, 0x20);