Ignore:
Timestamp:
Jul 2, 2013, 7:27:06 PM (12 years ago)
Author:
Herwig Bauernfeind
Message:

Samba Server 3.5: Update branch to 3.5.20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/libaddns/dnsgss.c

    r596 r773  
    165165                        struct dns_buffer *buf;
    166166                        struct dns_tkey_record *tkey;
     167                        struct dns_rrec *tkey_answer = NULL;
     168                        uint16_t i;
    167169
    168170                        err = dns_receive(mem_ctx, conn, &buf);
     
    175177                         * TODO: Compare id and keyname
    176178                         */
    177                        
    178                         if ((resp->num_additionals != 1) ||
    179                             (resp->num_answers == 0) ||
    180                             (resp->answers[0]->type != QTYPE_TKEY)) {
     179
     180                        for (i=0; i < resp->num_answers; i++) {
     181                                if (resp->answers[i]->type != QTYPE_TKEY) {
     182                                        continue;
     183                                }
     184
     185                                tkey_answer = resp->answers[i];
     186                        }
     187
     188                        if (tkey_answer == NULL) {
    181189                                err = ERROR_DNS_INVALID_MESSAGE;
    182190                                goto error;
Note: See TracChangeset for help on using the changeset viewer.