summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-08 00:08:41 +0200
committerMichael Adam <obnox@samba.org>2008-04-10 01:28:56 +0200
commit8c85c10f8a2589f3c93477d21cd3485248c0f66f (patch)
tree1c6737363ae72d854ba68e781976a88eb9b0313a /source3
parent862608ca1fa0bcec100f23fff326a571df967235 (diff)
downloadsamba-8c85c10f8a2589f3c93477d21cd3485248c0f66f.tar.gz
samba-8c85c10f8a2589f3c93477d21cd3485248c0f66f.tar.bz2
samba-8c85c10f8a2589f3c93477d21cd3485248c0f66f.zip
libsmbconf: search from the back when getting parameter from text backend
so we make sure to always deliver the value last read. Michael (This used to be commit 2eb5a681e9e3ff302b5151f25d6856834eae7d54)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/smbconf/smbconf_txt_simple.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/smbconf/smbconf_txt_simple.c b/source3/lib/smbconf/smbconf_txt_simple.c
index 53768dec88..8c831f9f81 100644
--- a/source3/lib/smbconf/smbconf_txt_simple.c
+++ b/source3/lib/smbconf/smbconf_txt_simple.c
@@ -462,10 +462,10 @@ static WERROR smbconf_txt_get_parameter(struct smbconf_ctx *ctx,
return WERR_NO_SUCH_SERVICE;
}
- found = smbconf_find_in_array(param,
- pd(ctx)->cache->param_names[share_index],
- pd(ctx)->cache->num_params[share_index],
- &param_index);
+ found = smbconf_reverse_find_in_array(param,
+ pd(ctx)->cache->param_names[share_index],
+ pd(ctx)->cache->num_params[share_index],
+ &param_index);
if (!found) {
return WERR_INVALID_PARAM;
}