summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-06-23 11:09:38 +0200
committerMichael Adam <obnox@samba.org>2008-06-23 11:11:59 +0200
commitcb5f5eac3820895fe5dbabb27265a06ae3e1075d (patch)
tree1dd973199fd0b3abfce006ae529bedc6a23cf3fc /source3
parentb5783a0911b2ed8b274d5f12f840fc495eec506f (diff)
downloadsamba-cb5f5eac3820895fe5dbabb27265a06ae3e1075d.tar.gz
samba-cb5f5eac3820895fe5dbabb27265a06ae3e1075d.tar.bz2
samba-cb5f5eac3820895fe5dbabb27265a06ae3e1075d.zip
libsmbconf: fastpaths first in smbconf_reg_valname_valid().
Before dropping into lp_parameter_is_valid(). Michael (This used to be commit 59beb7acd777a4c224dce90fbbff7a137d2b89c1)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/smbconf/smbconf_reg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c
index dfce7502c5..395e44a31e 100644
--- a/source3/lib/smbconf/smbconf_reg.c
+++ b/source3/lib/smbconf/smbconf_reg.c
@@ -66,8 +66,8 @@ static bool smbconf_reg_valname_forbidden(const char *valname)
static bool smbconf_reg_valname_valid(const char *valname)
{
- return (lp_parameter_is_valid(valname) &&
- !smbconf_reg_valname_forbidden(valname));
+ return (!smbconf_reg_valname_forbidden(valname) &&
+ lp_parameter_is_valid(valname));
}
/**