Changeset 596 for trunk/server/libcli/nbt/nbtname.c
- Timestamp:
- Jul 2, 2011, 3:35:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/libcli/nbt/nbtname.c
r414 r596 83 83 "BAD NBT NAME component"); 84 84 } 85 *component = (uint8_t*)talloc_strndup(ndr, (const char *)&ndr->data[1 + *offset], len); 85 *component = (uint8_t*)talloc_strndup( 86 ndr->current_mem_ctx, 87 (const char *)&ndr->data[1 + *offset], len); 86 88 NDR_ERR_HAVE_NO_MEMORY(*component); 87 89 *offset += len + 1; … … 127 129 } 128 130 if (num_components == 0) { 129 name = talloc_strdup(ndr , "");131 name = talloc_strdup(ndr->current_mem_ctx, ""); 130 132 NDR_ERR_HAVE_NO_MEMORY(name); 131 133 }
Note:
See TracChangeset
for help on using the changeset viewer.