diff options
Diffstat (limited to 'xlators/lib/src/libxlator.c')
-rw-r--r-- | xlators/lib/src/libxlator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/lib/src/libxlator.c b/xlators/lib/src/libxlator.c index 30436131b6b..0f703904fab 100644 --- a/xlators/lib/src/libxlator.c +++ b/xlators/lib/src/libxlator.c @@ -458,6 +458,9 @@ cluster_handle_marker_getxattr (call_frame_t *frame, loc_t *loc, if (GF_CLIENT_PID_GSYNCD != frame->root->pid) return -EINVAL; + if (name == NULL) + return -EINVAL; + if (strcmp (GF_XATTR_MARKER_KEY, name) == 0) { type = MARKER_UUID_TYPE; memcpy (gauge, marker_uuid_default_gauge, sizeof (gauge)); |