summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-clnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/rpc-lib/src/rpc-clnt.c')
-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 0a1bcd35d53..9b8e79070ec 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,