RTSP: Fix segault of cli tap with no filter set

This commit is contained in:
John Thacker 2021-12-08 22:26:48 -05:00 committed by Wireshark GitLab Utility
parent c648a40751
commit 51134bca8d
1 changed files with 1 additions and 1 deletions

View File

@ -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);