summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/options.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libglusterfs/src/options.c b/libglusterfs/src/options.c
index 37302e0daec..dee3c91854f 100644
--- a/libglusterfs/src/options.c
+++ b/libglusterfs/src/options.c
@@ -501,14 +501,13 @@ xlator_option_validate_addr (xlator_t *xl, const char *key, const char *value,
if (!valid_internet_address ((char *)value)) {
snprintf (errstr, 256,
- "internet address '%s' does not conform to standards.",
+ "internet address '%s' does not conform to standards.",
value);
gf_log (xl->name, GF_LOG_ERROR, "%s", errstr);
+ if (op_errstr)
+ *op_errstr = gf_strdup (errstr);
}
- if (ret && op_errstr)
- *op_errstr = gf_strdup (errstr);
-
ret = 0;
return ret;