Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/addns/dnsutils.c

    r740 r988  
    2323*/
    2424
     25#include "includes.h"
     26#include "librpc/ndr/libndr.h"
     27#include "librpc/gen_ndr/ndr_misc.h"
     28
    2529#include "dns.h"
    2630#include <ctype.h>
     31
    2732
    2833static DNS_ERROR LabelList( TALLOC_CTX *mem_ctx,
     
    5459        }
    5560
    56         if (!(result = TALLOC_ZERO_P(mem_ctx, struct dns_domain_label))) {
     61        if (!(result = talloc_zero(mem_ctx, struct dns_domain_label))) {
    5762                return ERROR_DNS_NO_MEMORY;
    5863        }
     
    134139#if defined(WITH_DNS_UPDATES)
    135140
    136         uuid_t uuid;
     141        struct GUID guid;
    137142
    138         /*
    139          * uuid_unparse gives 36 bytes plus '\0'
    140          */
    141         if (!(result = TALLOC_ARRAY(mem_ctx, char, 37))) {
    142                 return NULL;
    143         }
    144 
    145         uuid_generate( uuid );
    146         uuid_unparse( uuid, result );
     143        guid = GUID_random();
     144        result = GUID_string(mem_ctx, &guid);
    147145
    148146#endif
Note: See TracChangeset for help on using the changeset viewer.