diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 15:04:42 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 15:04:42 +0200 |
commit | 7b32f65600988421dc8c825109e225612a3b6166 (patch) | |
tree | 0f1f2a272171a4fd3709885b60cb1dc40f88f3b7 /source4/param | |
parent | 5f3d5a3ad873feca66e118e020ed77189a7f2f9c (diff) | |
download | samba-7b32f65600988421dc8c825109e225612a3b6166.tar.gz samba-7b32f65600988421dc8c825109e225612a3b6166.tar.bz2 samba-7b32f65600988421dc8c825109e225612a3b6166.zip |
testparm: Check netbios name and workgroup characters and length.
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/pyparam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c index 53f19f6098..a648f65d4e 100644 --- a/source4/param/pyparam.c +++ b/source4/param/pyparam.c @@ -46,8 +46,8 @@ static PyObject *py_lp_ctx_get_helper(struct loadparm_context *lp_ctx, const cha void *parm_ptr = NULL; int i; - if (service_name != NULL && !strwicmp(service_name, GLOBAL_NAME) && - !strwicmp(service_name, GLOBAL_NAME2)) { + if (service_name != NULL && strwicmp(service_name, GLOBAL_NAME) && + strwicmp(service_name, GLOBAL_NAME2)) { struct loadparm_service *service; /* its a share parameter */ service = lp_service(lp_ctx, service_name); |