From fb55cf6aea208b8f493adc011b3b0a0d734cc8a1 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Mon, 21 Mar 2016 12:01:47 +0530 Subject: features/marker: Fix dict_get errors when key is NULL Change-Id: I25e497459441334c13af77b3fec83c42a7a92ac4 BUG: 1319581 Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/13793 Smoke: Gluster Build System Tested-by: Vijaikumar Mallikarjuna Reviewed-by: Vijaikumar Mallikarjuna NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Venky Shankar --- xlators/features/marker/src/marker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators') diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index a1da66bf4e3..e0e7c9857e6 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -422,10 +422,10 @@ marker_filter_gsyncd_xattrs (call_frame_t *frame, priv = this->private; GF_ASSERT (priv); + GF_ASSERT (frame); - if (frame->root->pid != GF_CLIENT_PID_GSYNCD && - dict_get(xattrs, priv->marker_xattr)) { - dict_del (xattrs, priv->marker_xattr); + if (xattrs && frame->root->pid != GF_CLIENT_PID_GSYNCD) { + GF_REMOVE_INTERNAL_XATTR (GF_XATTR_XTIME_PATTERN, xattrs); } return; } -- cgit