pidgin/pidgin

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/
--- 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: