diff options
-rw-r--r-- | avahi-core/wide-area.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c index a8bab78..38ac099 100644 --- a/avahi-core/wide-area.c +++ b/avahi-core/wide-area.c @@ -747,6 +747,8 @@ AvahiRecord* tsig_sign_packet(const char* name, AvahiDnsPacket *p, unsigned algo r->data.tsig.error = 0; /* no error, we are always transmitting */ + r->data.tsig.original_id = 0; /* won't use, SHOULD match DNS transaction ID */ + switch (algorithm){ case AVAHI_TSIG_HMAC_MD5 : @@ -756,6 +758,10 @@ AvahiRecord* tsig_sign_packet(const char* name, AvahiDnsPacket *p, unsigned algo r->data.tsig.mac_size = 16; + r->data.tsig.other_len = 0; /*no other data */ + + r->data.tsig.other_cata = NULL; + break; case AVAHI_TSIG_HMAC_SHA1 : /*TODO: flesh specific. Test with latest Bind that now implements RFC 4635*/ @@ -768,6 +774,4 @@ AvahiRecord* tsig_sign_packet(const char* name, AvahiDnsPacket *p, unsigned algo } return r; -} - - +}
\ No newline at end of file |