]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Fix typo in flag test/set
authorNaveen Albert <asterisk@phreaknet.org>
Tue, 11 Jan 2022 18:46:08 +0000 (18:46 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 19 Jan 2022 14:50:45 +0000 (08:50 -0600)
commitd35e292ae4223814e775f95ed63403d502d745ed
tree0a846184a019b4ca0b76a9a84d63951d78fde2dc
parent97ace6b816ceb033d90a170fd9d33f5407df5fed
res_rtp_asterisk: Fix typo in flag test/set

The code currently checks to see if an RFC3389
warning flag is set, except if it is, it merely
sets the flag again, the logic of which doesn't
make any sense.

This adjusts the if comparison to check if the
flag has NOT been set, and if so, emit a notice
log event and set the flag so that future frames
do not cause an event to be logged.

ASTERISK-29856 #close

Change-Id: Ib7098c947c63537d087a03b4646199fbb963f8e1
res/res_rtp_asterisk.c