1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

Dont return count - 1 but count from libnet_smbconf_reg_get_values().

Michael
(This used to be commit ded60dec7d75db7df485a159fb6bf628d8e24805)
This commit is contained in:
Michael Adam 2007-12-29 17:02:27 +01:00
parent e8cb7cecf2
commit a6d6fbb73d
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -541,7 +541,7 @@ static int net_conf_showshare(int argc, const char **argv)
d_printf("[%s]\n", sharename);
for (count = 0; count <= num_params; count++) {
for (count = 0; count < num_params; count++) {
d_printf("\t%s = %s\n", param_names[count],
param_values[count]);
}