Skip to content

Commit 47d9ec9

Browse files
authored
Merge pull request #2021 from l2dy/osp
osp: fix NULL pointer dereference
2 parents 92830e9 + 4fbb452 commit 47d9ec9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/osp/usage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,8 @@ void ospReportTermSetupUsage(void)
773773
OSPE_ROLE_STATE rstate;
774774
int errorcode;
775775

776-
if (inbound == NULL) {
777-
if (dest == NULL) {
776+
if (inbound != NULL) {
777+
if (dest != NULL) {
778778
if (dest->reported == 0) {
779779
dest->reported = 1;
780780
LM_INFO("report term setup for call_id '%.*s' transaction_id '%llu'\n",

0 commit comments

Comments
 (0)