summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpc/rpc-lib/src/rpc-clnt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c
index 0a1bcd35d5..9b8e79070e 100644
--- a/rpc/rpc-lib/src/rpc-clnt.c
+++ b/rpc/rpc-lib/src/rpc-clnt.c
@@ -160,6 +160,9 @@ call_bail(void *data)
}
pthread_mutex_unlock(&conn->lock);
+ if (list_empty(&list))
+ goto out;
+
list_for_each_entry_safe(trav, tmp, &list, list)
{
gf_time_fmt(frame_sent, sizeof frame_sent, trav->saved_at.tv_sec,