From ae67085c45332bb157480c6dc2f16f7d5bc0fcae Mon Sep 17 00:00:00 2001 From: "philip.marshall" Date: Fri, 14 Jun 2024 13:26:01 -0700 Subject: [PATCH] src: Add fix to query_for_fabric --- src/transport_ofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport_ofi.c b/src/transport_ofi.c index 1fdd9fbc..727eea1f 100644 --- a/src/transport_ofi.c +++ b/src/transport_ofi.c @@ -1556,7 +1556,7 @@ int query_for_fabric(struct fabric_info *info) } } } - fabrics_list_tail->next = NULL; + if (fabrics_list_tail) fabrics_list_tail->next = NULL; } else { fabrics_list_head = info->fabrics;