]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] scan-build: Dereference of null pointer (loaded from variable 'flags')
authorDragos Oancea <dragos@signalwire.com>
Thu, 1 Apr 2021 16:18:18 +0000 (16:18 +0000)
committerAndrey Volk <andywolk@gmail.com>
Tue, 19 Oct 2021 17:35:09 +0000 (20:35 +0300)
src/switch_rtp.c

index e2fcf454192b5ce069a171f437e01a881c90899f..199c9e95f79f4f82c823ca4989261e5cf6d6ef4b 100644 (file)
@@ -8503,7 +8503,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
        }
 
        if (switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
-               int external = (*flags & SFF_EXTERNAL);
+               int external = (flags && *flags & SFF_EXTERNAL);
                /* Normalize the timestamps to our own base by generating a made up starting point then adding the measured deltas to that base
                   so if the timestamps and ssrc of the source change, it will not break the other end's jitter bufffer / decoder etc *cough* CHROME *cough*
                 */