mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_pjsip_messaging: Check URI type before dereferencing
We aren't validating that the URI we just parsed is a SIP/SIPS one before trying to access the user, host, and port members of a possibly uninitialized structure. Also update the MessageSend documentation to indicate what 'from' formats are accepted. ASTERISK-26484 #close Reported by: Vinod Dharashive Change-Id: I476b5cc5f18a7713d0ee945374f2a1c164857d30
This commit is contained in:
@@ -127,8 +127,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
</parameter>
|
||||
<parameter name="from" required="false">
|
||||
<para>A From URI for the message if needed for the
|
||||
message technology being used to send this message.</para>
|
||||
<xi:include xpointer="xpointer(/docs/info[@name='MessageFromInfo'])" />
|
||||
message technology being used to send this message. This can be a
|
||||
SIP(S) URI, such as <literal>Alice <sip:alice@atlanta.com></literal>,
|
||||
a string in the format <literal>alice@atlanta.com</literal>, or simply
|
||||
a username such as <literal>alice</literal>.</para>
|
||||
</parameter>
|
||||
</syntax>
|
||||
<description>
|
||||
|
Reference in New Issue
Block a user