Changeset 739 for branches/samba-3.5.x/source3/libaddns/dnsmarshall.c
- Timestamp:
- Nov 12, 2012, 7:37:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/libaddns/dnsmarshall.c
r414 r739 28 28 struct dns_buffer *result; 29 29 30 if (!(result = talloc (mem_ctx, struct dns_buffer))) {30 if (!(result = talloc_zero(mem_ctx, struct dns_buffer))) { 31 31 return NULL; 32 32 } … … 40 40 result->size = 2; 41 41 42 if (!(result->data = TALLOC_ ARRAY(result, uint8, result->size))) {42 if (!(result->data = TALLOC_ZERO_ARRAY(result, uint8, result->size))) { 43 43 TALLOC_FREE(result); 44 44 return NULL; … … 217 217 } 218 218 219 if (!(label = talloc (mem_ctx, struct dns_domain_label))) {219 if (!(label = talloc_zero(mem_ctx, struct dns_domain_label))) { 220 220 buf->error = ERROR_DNS_NO_MEMORY; 221 221 return; … … 224 224 label->len = len; 225 225 226 if (!(label->label = TALLOC_ ARRAY(label, char, len+1))) {226 if (!(label->label = TALLOC_ZERO_ARRAY(label, char, len+1))) { 227 227 buf->error = ERROR_DNS_NO_MEMORY; 228 228 goto error; … … 251 251 if (!ERR_DNS_IS_OK(buf->error)) return; 252 252 253 if (!(name = talloc (mem_ctx, struct dns_domain_name))) {253 if (!(name = talloc_zero(mem_ctx, struct dns_domain_name))) { 254 254 buf->error = ERROR_DNS_NO_MEMORY; 255 255 return; … … 282 282 if (!(ERR_DNS_IS_OK(buf->error))) return; 283 283 284 if (!(q = talloc (mem_ctx, struct dns_question))) {284 if (!(q = talloc_zero(mem_ctx, struct dns_question))) { 285 285 buf->error = ERROR_DNS_NO_MEMORY; 286 286 return; … … 315 315 if (!(ERR_DNS_IS_OK(buf->error))) return; 316 316 317 if (!(r = talloc (mem_ctx, struct dns_rrec))) {317 if (!(r = talloc_zero(mem_ctx, struct dns_rrec))) { 318 318 buf->error = ERROR_DNS_NO_MEMORY; 319 319 return; … … 330 330 331 331 if (r->data_length != 0) { 332 if (!(r->data = TALLOC_ ARRAY(r, uint8, r->data_length))) {332 if (!(r->data = TALLOC_ZERO_ARRAY(r, uint8, r->data_length))) { 333 333 buf->error = ERROR_DNS_NO_MEMORY; 334 334 return; … … 407 407 408 408 if ((req->num_questions != 0) && 409 !(req->questions = TALLOC_ ARRAY(req, struct dns_question *,409 !(req->questions = TALLOC_ZERO_ARRAY(req, struct dns_question *, 410 410 req->num_questions))) { 411 411 goto error; 412 412 } 413 413 if ((req->num_answers != 0) && 414 !(req->answers = TALLOC_ ARRAY(req, struct dns_rrec *,414 !(req->answers = TALLOC_ZERO_ARRAY(req, struct dns_rrec *, 415 415 req->num_answers))) { 416 416 goto error; 417 417 } 418 418 if ((req->num_auths != 0) && 419 !(req->auths = TALLOC_ ARRAY(req, struct dns_rrec *,419 !(req->auths = TALLOC_ZERO_ARRAY(req, struct dns_rrec *, 420 420 req->num_auths))) { 421 421 goto error; 422 422 } 423 423 if ((req->num_additionals != 0) && 424 !(req->additionals = TALLOC_ ARRAY(req, struct dns_rrec *,424 !(req->additionals = TALLOC_ZERO_ARRAY(req, struct dns_rrec *, 425 425 req->num_additionals))) { 426 426 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.