summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-06-20 15:04:42 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 15:04:42 +0200
commit7b32f65600988421dc8c825109e225612a3b6166 (patch)
tree0f1f2a272171a4fd3709885b60cb1dc40f88f3b7 /source4/param
parent5f3d5a3ad873feca66e118e020ed77189a7f2f9c (diff)
downloadsamba-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.c4
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);