param: fix an offset bug in lpcfg_set_cmdline
authorGarming Sam <garming@catalyst.net.nz>
Tue, 28 Jan 2014 22:59:29 +0000 (11:59 +1300)
committerMichael Adam <obnox@samba.org>
Wed, 29 Jan 2014 08:10:54 +0000 (09:10 +0100)
commit58d3ad76120201356b77aaa1dfb6c9b131ad4ae4
tree1bbb49a9b9c8d5bd32e00512bfacf37718fc49f2
parent58865d96f187b843acea6d80f595ae9023f13708
param: fix an offset bug in lpcfg_set_cmdline

Previously, it was possible to compare offsets between
loadparm_service and loadparm_global.  This meant in some cases
incorrectly skipping certain parameters.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/param/loadparm.c