Skip to content
Snippets Groups Projects
Commit fe932995 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2
Browse files

manager: fix nullptr access in Manager::sendCallTextMessage

Call::getCallId() method is accessed in a nullptr pointer context.
This patch fix it by using the user given callId.

Issue: #82045
Change-Id: I8700aeaa173706909cf303be6d1efff5a4d1fc44
parent 82edcbbf
No related branches found
No related tags found
No related merge requests found
...@@ -1662,7 +1662,7 @@ Manager::sendCallTextMessage(const std::string& callID, ...@@ -1662,7 +1662,7 @@ Manager::sendCallTextMessage(const std::string& callID,
} else { } else {
auto call = getCallFromCallID(callID); auto call = getCallFromCallID(callID);
if (not call) { if (not call) {
RING_ERR("Failed to send message to %s: inexistant call ID", call->getCallId().c_str()); RING_ERR("Failed to send message to %s: inexistant call ID", callID.c_str());
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment