22 lines
691 B
Diff
22 lines
691 B
Diff
|
Index: avahi-compat-libdns_sd/compat.c
|
||
|
===================================================================
|
||
|
--- avahi-compat-libdns_sd/compat.c (revision 1535)
|
||
|
+++ avahi-compat-libdns_sd/compat.c (revision 1536)
|
||
|
@@ -990,6 +990,16 @@
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
+
|
||
|
+ if (!sdref->service_name_chosen) {
|
||
|
+
|
||
|
+ assert(sdref->service_name);
|
||
|
+
|
||
|
+ if (!(sdref->service_name_chosen = avahi_strdup(sdref->service_name))) {
|
||
|
+ reg_report_error(sdref, kDNSServiceErr_NoMemory);
|
||
|
+ return;
|
||
|
+ }
|
||
|
+ }
|
||
|
|
||
|
/* Register the service */
|
||
|
|