From 0f552c509f5a12bda6b7b160a82a9322986655c6 Mon Sep 17 00:00:00 2001 From: Zhou Zhengping Date: Thu, 4 May 2017 09:01:37 +0800 Subject: libglusterfs/graph: fix potential endless loop in options validate work Change-Id: Icb71ded6051afe44e07480e0499d2a39f05fac71 BUG: 1447826 Signed-off-by: Zhou Zhengping Reviewed-on: https://review.gluster.org/17171 NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Amar Tumballi Smoke: Gluster Build System Reviewed-by: Niels de Vos --- libglusterfs/src/graph.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 1edcf20eda6..86d08f0e25b 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -292,8 +292,10 @@ glusterfs_graph_validate_options (glusterfs_graph_t *graph) trav = graph->first; while (trav) { - if (list_empty (&trav->volume_options)) + if (list_empty (&trav->volume_options)) { + trav = trav->next; continue; + } ret = xlator_options_validate (trav, trav->options, &errstr); if (ret) { -- cgit