Changeset 988 for vendor/current/lib/addns/dnsutils.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/addns/dnsutils.c
r740 r988 23 23 */ 24 24 25 #include "includes.h" 26 #include "librpc/ndr/libndr.h" 27 #include "librpc/gen_ndr/ndr_misc.h" 28 25 29 #include "dns.h" 26 30 #include <ctype.h> 31 27 32 28 33 static DNS_ERROR LabelList( TALLOC_CTX *mem_ctx, … … 54 59 } 55 60 56 if (!(result = TALLOC_ZERO_P(mem_ctx, struct dns_domain_label))) {61 if (!(result = talloc_zero(mem_ctx, struct dns_domain_label))) { 57 62 return ERROR_DNS_NO_MEMORY; 58 63 } … … 134 139 #if defined(WITH_DNS_UPDATES) 135 140 136 uuid_t uuid;141 struct GUID guid; 137 142 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); 147 145 148 146 #endif
Note:
See TracChangeset
for help on using the changeset viewer.