diff options
author | Michael Adam <obnox@samba.org> | 2007-12-29 17:02:27 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-12-29 17:02:27 +0100 |
commit | a6d6fbb73d56d3b96ccf55c1d028c5af00d83386 (patch) | |
tree | 266f5f48d0e0b5ac3218887065b8e48f9c6e4de5 /source3/libnet | |
parent | e8cb7cecf2dde62f271a37376cefa5179eb7b7bc (diff) | |
download | samba-a6d6fbb73d56d3b96ccf55c1d028c5af00d83386.tar.gz samba-a6d6fbb73d56d3b96ccf55c1d028c5af00d83386.tar.bz2 samba-a6d6fbb73d56d3b96ccf55c1d028c5af00d83386.zip |
Dont return count - 1 but count from libnet_smbconf_reg_get_values().
Michael
(This used to be commit ded60dec7d75db7df485a159fb6bf628d8e24805)
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c index 636e966a37..300ea916cd 100644 --- a/source3/libnet/libnet_conf.c +++ b/source3/libnet/libnet_conf.c @@ -354,7 +354,7 @@ static WERROR libnet_smbconf_reg_get_values(TALLOC_CTX *mem_ctx, werr = WERR_OK; - *num_values = count - 1; + *num_values = count; if (count > 0) { *value_names = talloc_move(mem_ctx, &tmp_valnames); *value_strings = talloc_move(mem_ctx, &tmp_valstrings); |