1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00
Commit Graph

9 Commits

Author SHA1 Message Date
Andrew Tridgell
01dc4ed9b4 r1892: this adds talloc_get_context(), which is something I discussed at the
team meeting at CIFS04. It allows you to find the talloc context given
any pointer allocated with talloc.
2007-10-10 12:58:08 -05:00
Andrew Bartlett
2cc0b3a2f1 r1474: It is useful if talloc_strdup() behaves like strdup()
- NULL in, NULL out

Andrew Bartlett
2007-10-10 12:57:33 -05:00
Andrew Bartlett
5816d09c47 r1199: Make talloc_asprintf_append() work on a NULL source string as if it were
just a alloc_asprintf().

(makes it easier to use in a loop)

Andrew Bartlett
2007-10-10 12:56:44 -05:00
Andrew Tridgell
363cb3377a r1017: - move to a centralised way of handling talloc/ldb interaction 2007-10-10 12:56:28 -05:00
Stefan Metzmacher
57151e80eb r962: convert 'unsigned' and 'unsigned int' to uint_t
metze
2007-10-10 12:56:23 -05:00
Andrew Tridgell
2331d4e76e r507: the new ldb code will use talloc_free() a lot, so I have made
talloc_free() O(1) in preparation. This also halves the number of
malloc() calls and increases our internal consistency checking,
without breaking valgrind testing.
2007-10-10 12:51:46 -05:00
Andrew Tridgell
2045855601 fixed some memory leaks in the rpc server code -
Andrew Tridgell
3f85f9b782 added a basic dcerpc endpoint mapper to Samba4. Currently only
implements the epm_Lookup() call, I'll add the other important calls
soon. I was rather pleased to find that epm_Lookup() worked first
time, which is particularly surprising given its complexity.

This required quite a bit of new infrastructure:

  * a generic way of handling dcerpc policy handles in the rpc server

  * added type checked varients of talloc. These are much less error
    prone. I'd like to move to using these for nearly all uses of
    talloc.

  * added more dcerpc fault handling code, and translation from
    NTSTATUS to a dcerpc fault code

  * added data_blob_talloc_zero() for allocating an initially zero
    blob

  * added a endpoint enumeration hook in the dcerpc endpoint server
    operations
-
Andrew Tridgell
b0510b5428 first public release of samba4 code -