]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/avahi/avahi-0.1/resolving.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / avahi / avahi-0.1 / resolving.patch
1 diff -Nurd avahi-0.1.orig/avahi-core/resolve-service.c avahi-0.1/avahi-core/resolve-service.c
2 --- avahi-0.1.orig/avahi-core/resolve-service.c 2005-08-21 23:27:14 +0200
3 +++ avahi-0.1/avahi-core/resolve-service.c      2005-08-28 00:34:50 +0200
4 @@ -200,10 +200,11 @@
5      } else {
6          assert(event == AVAHI_BROWSER_REMOVE);
7  
8 +        
9          switch (record->key->type) {
10              case AVAHI_DNS_TYPE_SRV:
11  
12 -                if (avahi_record_equal_no_ttl(record, r->srv_record)) {
13 +                if (r->srv_record && avahi_record_equal_no_ttl(record, r->srv_record)) {
14                      avahi_record_unref(r->srv_record);
15                      r->srv_record = NULL;
16  
17 @@ -216,7 +217,7 @@
18  
19              case AVAHI_DNS_TYPE_TXT:
20  
21 -                if (avahi_record_equal_no_ttl(record, r->txt_record)) {
22 +                if (r->txt_record && avahi_record_equal_no_ttl(record, r->txt_record)) {
23                      avahi_record_unref(r->txt_record);
24                      r->txt_record = NULL;
25  
26 @@ -229,7 +230,7 @@
27              case AVAHI_DNS_TYPE_A:
28              case AVAHI_DNS_TYPE_AAAA:
29  
30 -                if (avahi_record_equal_no_ttl(record, r->address_record)) {
31 +                if (r->address_record && avahi_record_equal_no_ttl(record, r->address_record)) {
32                      avahi_record_unref(r->address_record);
33                      r->address_record = NULL;
34  
35 diff -Nurd avahi-0.1.orig/avahi-core/resolve-address.c avahi-0.1/avahi-core/resolve-address.c
36 --- avahi-0.1.orig/avahi-core/resolve-address.c 2005-08-21 23:27:14 +0200
37 +++ avahi-0.1/avahi-core/resolve-address.c      2005-08-28 00:34:50 +0200
38 @@ -121,7 +121,7 @@
39          
40          assert(event == AVAHI_BROWSER_REMOVE);
41          
42 -        if (avahi_record_equal_no_ttl(record, r->ptr_record)) {
43 +        if (r->ptr_record && avahi_record_equal_no_ttl(record, r->ptr_record)) {
44              avahi_record_unref(r->ptr_record);
45              r->ptr_record = NULL;
46  
47 diff -Nurd avahi-0.1.orig/avahi-core/resolve-host-name.c avahi-0.1/avahi-core/resolve-host-name.c
48 --- avahi-0.1.orig/avahi-core/resolve-host-name.c       2005-08-21 23:27:14 +0200
49 +++ avahi-0.1/avahi-core/resolve-host-name.c    2005-08-28 00:34:50 +0200
50 @@ -141,7 +141,7 @@
51  
52          assert(event == AVAHI_BROWSER_REMOVE);
53  
54 -        if (avahi_record_equal_no_ttl(record, r->address_record)) {
55 +        if (r->address_record && avahi_record_equal_no_ttl(record, r->address_record)) {
56              avahi_record_unref(r->address_record);
57              r->address_record = NULL;
58