From 7b32f65600988421dc8c825109e225612a3b6166 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 20 Jun 2010 15:04:42 +0200 Subject: testparm: Check netbios name and workgroup characters and length. --- source4/param/pyparam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/param') 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); -- cgit