]> 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:51:05 +0000 (08:51 -0600)
commita9e9e15c3aff72c777c53c111b3a30922a7d02c1
tree20016f51bf97bc9f2aa56a7f86d9c7beaa9b4096
parentcc38ed9c21d16a64046e94bccebacf0ebe4dba60
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