summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-07-01 15:28:13 -0700
committerJeremy Allison <jra@samba.org>2008-07-01 15:28:13 -0700
commit4a8b39974bd4854a743b8fbf376c2923ee5dab3c (patch)
treef1aadf48148d1b7b732b1c0d9c806ccbd484fef3 /source3/lib/smbconf
parent3b1de7f7f4db16c50a2c6b310d04643c094be695 (diff)
downloadsamba-4a8b39974bd4854a743b8fbf376c2923ee5dab3c.tar.gz
samba-4a8b39974bd4854a743b8fbf376c2923ee5dab3c.tar.bz2
samba-4a8b39974bd4854a743b8fbf376c2923ee5dab3c.zip
Fix problem noticed by Jim Brown <jim.brown@miami.edu>. When reverse searching decrement index,
not increment. Michael please check ! Jeremy. (This used to be commit d89f9d404f478fc9887bb6e67ce28a61464bcf93)
Diffstat (limited to 'source3/lib/smbconf')
-rw-r--r--source3/lib/smbconf/smbconf_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbconf/smbconf_util.c b/source3/lib/smbconf/smbconf_util.c
index b2e253dd26..aa16369269 100644
--- a/source3/lib/smbconf/smbconf_util.c
+++ b/source3/lib/smbconf/smbconf_util.c
@@ -138,7 +138,7 @@ bool smbconf_reverse_find_in_array(const char *string, char **list,
return false;
}
- for (i = num_entries - 1; i >= 0; i++) {
+ for (i = num_entries - 1; i >= 0; i--) {
if (strequal(string, list[i])) {
if (entry != NULL) {
*entry = i;