diff options
author | Jan Kryl <jan.kryl@nexenta.com> | 2015-01-06 05:43:37 -0500 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2015-01-08 13:05:15 -0500 |
commit | f093add7b63e274f746dd55365f052cded44cc16 (patch) | |
tree | 8eee2ec36f91afa62b231696b31132f347abbe98 /usr/src/cmd | |
parent | 5ff8cfa92ec8ea0f8593ad21aa2a04829b0ef5ea (diff) | |
download | illumos-gate-f093add7b63e274f746dd55365f052cded44cc16.tar.gz |
5494 libndmp memory leaks when setting a property
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/cmd')
-rw-r--r-- | usr/src/cmd/ndmpadm/ndmpadm_main.c | 8 |
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 4948283cb6..6cc7cbb7bc 100644 --- a/usr/src/cmd/ndmpadm/ndmpadm_main.c +++ b/usr/src/cmd/ndmpadm/ndmpadm_main.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright 2014 Nexenta Systems, Inc. All rights reserved. + * Copyright 2015 Nexenta Systems, Inc. All rights reserved. */ /* @@ -355,7 +355,7 @@ ndmp_set_config_process(char *propname) ret = ndmp_set_prop(propname, propvalue); if (ret != -1) { if (!ndmp_door_status()) { - if (ndmp_service_refresh() == -1) + if (ndmp_service_refresh() != 0) (void) fprintf(stdout, gettext("Could not " "refesh property of service ndmpd\n")); } @@ -631,7 +631,7 @@ ndmp_enable_auth(int argc, char **argv, ndmp_command_t *cur_cmd) continue; } if (!ndmp_door_status() && - (ndmp_service_refresh()) == -1) { + (ndmp_service_refresh()) != 0) { (void) fprintf(stdout, gettext("Could not refesh ndmpd service " "properties\n")); @@ -692,7 +692,7 @@ ndmp_disable_auth(int argc, char **argv, ndmp_command_t *cur_cmd) continue; } if (!ndmp_door_status() && - (ndmp_service_refresh()) == -1) { + (ndmp_service_refresh()) != 0) { (void) fprintf(stdout, gettext("Could not " "refesh ndmpd service properties\n")); } |