summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2023-04-05 22:53:00 -0500
committerGitHub <noreply@github.com>2023-04-05 22:53:00 -0500
commit02619b55225de13bff05c187bc211b64f9761090 (patch)
tree6a3e69748d91a6c787bcf48a9db535fb69f67e84
parent27a0311fcc20cba1247cce68c265ba026ca32775 (diff)
parent27552b48abffd6339354b3d50f027be5390b0547 (diff)
Merge pull request #13220 from mjstapp/fix_zebra_gr_client
zebra: null-check client pointer during GR processing
-rw-r--r--zebra/zebra_gr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_gr.c b/zebra/zebra_gr.c
index 40efbf5db4..cf2056b7ac 100644
--- a/zebra/zebra_gr.c
+++ b/zebra/zebra_gr.c
@@ -651,6 +651,9 @@ void zebra_gr_process_client(afi_t afi, vrf_id_t vrf_id, uint8_t proto,
struct client_gr_info *info = NULL;
struct zebra_gr_afi_clean *gac;
+ if (client == NULL)
+ return;
+
TAILQ_FOREACH (info, &client->gr_info_queue, gr_info) {
if (info->vrf_id == vrf_id)
break;