From 51134bca8d129a71b4fa078ced10fd89a2d9cc4f Mon Sep 17 00:00:00 2001 From: John Thacker Date: Wed, 8 Dec 2021 22:26:48 -0500 Subject: [PATCH] RTSP: Fix segault of cli tap with no filter set --- ui/cli/tap-rtspstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cli/tap-rtspstat.c b/ui/cli/tap-rtspstat.c index 258b852eb0..28f5977ba0 100644 --- a/ui/cli/tap-rtspstat.c +++ b/ui/cli/tap-rtspstat.c @@ -202,7 +202,7 @@ rtspstat_draw(void *psp ) rtspstat_t *sp = (rtspstat_t *)psp; printf("\n"); printf("===================================================================\n"); - if (! sp->filter[0]) + if (!sp->filter || !sp->filter[0]) printf("RTSP Statistics\n"); else printf("RTSP Statistics with filter %s\n", sp->filter);