Skip to content

Commit

Permalink
SIP: fix crash when SDP address is NULL but SDP username is not
Browse files Browse the repository at this point in the history
  • Loading branch information
salcock committed Nov 18, 2024
1 parent beae109 commit cb02238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collector/collector_sync_voip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ static int update_sip_state(collector_sync_voip_t *sync,
}

if (sessuser != NULL) {
strncpy(sdpo.username, sessaddr, sizeof(sdpo.username) - 1);
strncpy(sdpo.username, sessuser, sizeof(sdpo.username) - 1);
} else {
strncpy(sdpo.username, "unknown", sizeof(sdpo.username) - 1);
}
Expand Down

0 comments on commit cb02238

Please sign in to comment.