summaryrefslogtreecommitdiff
path: root/usr/src/cmd
diff options
context:
space:
mode:
authorJan Kryl <jan.kryl@nexenta.com>2014-12-26 07:42:50 -0500
committerRobert Mustacchi <rm@joyent.com>2014-12-27 06:32:28 -0800
commit8b87c15576a5138f88a969448b43561bf5968c09 (patch)
tree601550ceb39912431559011550901c46f768cf1d /usr/src/cmd
parentb6831eafa2ec2cb283f783b06ee86bf79d5a17c3 (diff)
downloadillumos-gate-8b87c15576a5138f88a969448b43561bf5968c09.tar.gz
5485 Missing const qualifiers for strings in libndmp
5486 leaked buffer in ndmp_base64_decode() Reviewed by: Marcel Telka <marcel.telka@nexenta.com> Reviewed by: Dan Fields <dan.fields@nexenta.com> Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/cmd')
-rw-r--r--usr/src/cmd/ndmpadm/ndmpadm_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/ndmpadm/ndmpadm_main.c b/usr/src/cmd/ndmpadm/ndmpadm_main.c
index ad06c2b4a0..4948283cb6 100644
--- a/usr/src/cmd/ndmpadm/ndmpadm_main.c
+++ b/usr/src/cmd/ndmpadm/ndmpadm_main.c
@@ -616,14 +616,14 @@ ndmp_enable_auth(int argc, char **argv, ndmp_command_t *cur_cmd)
if (strncmp(auth_type, ndmp_auth_table[i].auth_type,
strlen(ndmp_auth_table[i].auth_type)) == 0) {
auth_type_flag = 1;
- if ((ndmp_set_prop((char *)ndmp_auth_table[i].username,
+ if ((ndmp_set_prop(ndmp_auth_table[i].username,
username)) == -1) {
(void) fprintf(stdout,
gettext("Could not set username - %s\n"),
ndmp_strerror(ndmp_errno));
continue;
}
- if ((ndmp_set_prop((char *)ndmp_auth_table[i].password,
+ if ((ndmp_set_prop(ndmp_auth_table[i].password,
enc_password)) == -1) {
(void) fprintf(stdout,
gettext("Could not set password - %s\n"),
@@ -677,14 +677,14 @@ ndmp_disable_auth(int argc, char **argv, ndmp_command_t *cur_cmd)
if (strncmp(auth_type, ndmp_auth_table[i].auth_type,
strlen(ndmp_auth_table[i].auth_type)) == 0) {
auth_type_flag = 1;
- if ((ndmp_set_prop((char *)ndmp_auth_table[i].username,
+ if ((ndmp_set_prop(ndmp_auth_table[i].username,
"")) == -1) {
(void) fprintf(stdout,
gettext("Could not clear username - %s\n"),
ndmp_strerror(ndmp_errno));
continue;
}
- if ((ndmp_set_prop((char *)ndmp_auth_table[i].password,
+ if ((ndmp_set_prop(ndmp_auth_table[i].password,
"")) == -1) {
(void) fprintf(stdout,
gettext("Could not clear password - %s\n"),