Commit 68f2cd16 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Generate correct originating address in SAP header

in case of IPv4 advertisement on a IPv6-enabled OS
parent 0950551c
...@@ -443,13 +443,12 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap, ...@@ -443,13 +443,12 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
psz_head + 4 ); psz_head + 4 );
} }
else else
#else #endif
{ {
inet_pton( AF_INET, /* can't fail */ inet_pton( AF_INET, /* can't fail */
p_sap_session->p_address->psz_machine, p_sap_session->p_address->psz_machine,
psz_head + 4 ); psz_head + 4 );
} }
#endif
memcpy( psz_head + (b_ipv6 ? 20 : 8), "application/sdp", 15 ); memcpy( psz_head + (b_ipv6 ? 20 : 8), "application/sdp", 15 );
......
Markdown is supported
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