summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/xlator.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c
index bc36173d142..fe688a9513d 100644
--- a/libglusterfs/src/xlator.c
+++ b/libglusterfs/src/xlator.c
@@ -603,7 +603,12 @@ _volume_option_value_validate (xlator_t *xl,
{
if (valid_internet_address (pair->value->data)) {
ret = 0;
- }
+ } else {
+ gf_log (xl->name, GF_LOG_ERROR, "internet address '%s'"
+ " does not conform to standards.",
+ pair->value->data);
+ goto out;
+ }
}
break;
case GF_OPTION_TYPE_ANY: