No longer checks for globals vs service twice.
Change-Id: I065e732ddb1ca2dda63dd22e3caf291fce8d327b
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
/* we might point at a service, the default service or a global */
if (snum < 0) {
parm_ptr = lp_parm_ptr(NULL, &parm_table[parmnum]);
+ mem_ctx = Globals.ctx;
} else {
if (parm_table[parmnum].p_class == P_GLOBAL) {
DEBUG(0,
return true;
}
parm_ptr = lp_parm_ptr(ServicePtrs[snum], &parm_table[parmnum]);
- }
- if (snum >= 0) {
if (!ServicePtrs[snum]->copymap)
init_copymap(ServicePtrs[snum]);
bitmap_clear(ServicePtrs[snum]->copymap, i);
}
}
+
mem_ctx = ServicePtrs[snum];
- } else {
- mem_ctx = Globals.ctx;
}
/* if it is a special case then go ahead */