pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Fix inverted arguments to DNSServiceRegister.
2021-01-03, Elliott Sales de Andrade
918e73ae55b0
Parents
fa1a8ad13da4
Children
831547e6738f
Fix inverted arguments to DNSServiceRegister.
The flags and interface index were swapped, though it worked out fine since the constant was 0 anyway.
Testing Done:
Compiled only; this is a semantic change only in the end.
Reviewed at https://reviews.imfreedom.org/r/329/
1 files changed, 7 insertions(+), 4 deletions(-)
+7
-4
libpurple/protocols/bonjour/mdns_dns_sd.c
--- a/libpurple/protocols/bonjour/mdns_dns_sd.c Sun Jan 03 04:52:35 2021 -0600
+++ b/libpurple/protocols/bonjour/mdns_dns_sd.c Sun Jan 03 04:53:00 2021 -0600
@@ -507,10 +507,13 @@
switch (type) {
case PUBLISH_START:
purple_debug_info("bonjour", "Registering presence on port %d\n", data->port_p2pj);
- errorCode = DNSServiceRegister(&presence_sr, kDNSServiceInterfaceIndexAny,
- 0, bonjour_get_jid(data->account), LINK_LOCAL_RECORD_NAME,
- NULL, NULL, g_htons(data->port_p2pj), TXTRecordGetLength(&dns_data), TXTRecordGetBytesPtr(&dns_data),
- _mdns_service_register_callback, NULL);
+ errorCode = DNSServiceRegister(
+ &presence_sr, 0, kDNSServiceInterfaceIndexAny,
+ bonjour_get_jid(data->account), LINK_LOCAL_RECORD_NAME,
+ NULL, NULL, g_htons(data->port_p2pj),
+ TXTRecordGetLength(&dns_data),
+ TXTRecordGetBytesPtr(&dns_data),
+ _mdns_service_register_callback, NULL);
break;
case PUBLISH_UPDATE: