Просмотр исходного кода

quorumtool: Don't set our_flags without v_handle

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Jan Friesse 8 лет назад
Родитель
Сommit
4ec3d590fa
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      tools/corosync-quorumtool.c

+ 3 - 1
tools/corosync-quorumtool.c

@@ -536,7 +536,9 @@ static void display_nodes_data(nodeid_format_t nodeid_format, name_format_t name
 		printf("%s", g_view_list[i].name);
 		if (g_view_list[i].node_id == our_nodeid) {
 			printf(" (local)");
-			our_flags = info[i].flags;
+			if (v_handle) {
+				our_flags = info[i].flags;
+			}
 		}
 		printf("\n");
 	}