]> 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)
committerN A <mail@interlinked.x10host.com>
Mon, 17 Jan 2022 21:31:21 +0000 (15:31 -0600)
commit67a87c01ff38d52fc8a9b41fd3e703bf55a51eea
tree0d4d3c4bd8281ddc4816cc0266c2cf9216485208
parent9e975d4c185ed7e353b222980ef6cfce82f4f7b8
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