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
......@@ -1662,7 +1662,7 @@ Manager::sendCallTextMessage(const std::string& callID,
} else {
auto call = getCallFromCallID(callID);
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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment