Multicast Stream: Fix Dereference of null pointer found by Clang analyzer

Change-Id: I419f49132f8b0853c17b2fd1b4e9869ef3fafd13
Reviewed-on: https://code.wireshark.org/review/10224
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2015-08-24 10:29:18 +02:00 committed by Anders Broman
parent 31bf40eacf
commit cc15b11883
1 changed files with 5 additions and 3 deletions

View File

@ -119,10 +119,12 @@ static void
mcaststream_reset_cb(void *ti_ptr)
{
mcaststream_tapinfo_t *tapinfo = (mcaststream_tapinfo_t *)ti_ptr;
if (tapinfo && tapinfo->tap_reset) {
tapinfo->tap_reset(ti_ptr);
if (tapinfo) {
if (tapinfo->tap_reset) {
tapinfo->tap_reset(ti_ptr);
}
mcaststream_reset(tapinfo);
}
mcaststream_reset(tapinfo);
}
/****************************************************************************/