param: tidy up get_parametrics_by_service
authorGarming Sam <garming@catalyst.net.nz>
Tue, 25 Feb 2014 03:45:43 +0000 (16:45 +1300)
committerJeremy Allison <jra@samba.org>
Wed, 7 May 2014 17:49:17 +0000 (19:49 +0200)
commit66338032c243e4fe49a3b7cd71c74b14d7b2c784
tree2f5b7cdcb4bf28f296b0c09720375351dce70b44
parent687b35931db026779688891aa10e49ae2d05c4a9
param: tidy up get_parametrics_by_service

Reorders the search to check the service first, then check the globals
if it fails, or if none is specified, for better clarity.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/param/loadparm.c