summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_lsarpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpcclient/cmd_lsarpc.c')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index cfde752901..96f952a789 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -131,7 +131,7 @@ void cmd_lsa_lookup_names(struct client_info *info)
int i;
fstring srv_name;
int num_names = 0;
- char *names[10];
+ const char *names[10];
DOM_SID *sids;
int num_sids = 0;
#if 0
@@ -207,7 +207,7 @@ void cmd_lsa_lookup_names(struct client_info *info)
{
if (names[i] != NULL)
{
- free(names[i]);
+ free(((char **)names)[i]);
}
}
}