summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Lucifredi <flucifredi@acm.org>2008-01-10 23:27:05 +0000
committerFederico Lucifredi <flucifredi@acm.org>2008-01-10 23:27:05 +0000
commit61741535cdc70c226a593d668c8765fe283dbaaf (patch)
treea4f70ba889e470e39dbfdac05fe402fc20a98f9b
parent5eb8e0a05a101a5451f5ceb8ceac5e7ea8479ae7 (diff)
nother core done with.
git-svn-id: file:///home/lennart/svn/public/avahi/branches/federico@1687 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-core/wide-area.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c
index 389f7c4..206a5a8 100644
--- a/avahi-core/wide-area.c
+++ b/avahi-core/wide-area.c
@@ -762,12 +762,12 @@ AvahiRecord* avahi_tsig_sign_packet(const unsigned char* keyname, const unsigned
}
printf("size:%d\n", (unsigned int)p->size);
- if ((unsigned char *)p->data == NULL)
+ if ((unsigned char *)AVAHI_DNS_PACKET_DATA(p) == NULL)
printf("---NULL--- (3)\n");
/*feed all the data to be hashed in */
/*HMAC_Update(&ctx, <data/>, <length/>);*/
- HMAC_Update(&ctx, (unsigned char *)p->data, (unsigned int)p->size); /*packet in wire format*/
+ HMAC_Update(&ctx, (unsigned char *)AVAHI_DNS_PACKET_DATA(p), (unsigned int)p->size); /*packet in wire format*/
printf("---mark--- (3b)\n");
@@ -867,7 +867,7 @@ void avahi_wide_area_publish(AvahiRecord *r, const char *zone, uint16_t id, int
printf("---mark--- (2)\n");
printf("(2)result=%d\n", result);
- if (p->data == NULL)
+ if (AVAHI_DNS_PACKET_DATA(p) == NULL)
printf("---NULL--- (2)\n");
/* get it MAC signed */