summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpc-lib/src/rpc-transport.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c
index e8b56678bd9..87011470b89 100644
--- a/rpc/rpc-lib/src/rpc-transport.c
+++ b/rpc/rpc-lib/src/rpc-transport.c
@@ -388,9 +388,12 @@ __volume_option_value_validate (char *name,
break;
case GF_OPTION_TYPE_INTERNET_ADDRESS:
{
- if (valid_internet_address (pair->value->data)) {
- ret = 0;
+ if (!valid_internet_address (pair->value->data)) {
+ gf_log (name, GF_LOG_ERROR,
+ "internet address '%s' does not conform to"
+ "standards.", pair->value->data);
}
+ ret = 0;
}
break;
case GF_OPTION_TYPE_ANY: