Make sid_binstring & friends take a talloc context
[bbaumbach/samba-autobuild/.git] / source3 / lib / util_uuid.c
index c681b66d34a7a5d827f9002e70ceae0d81889ec4..656ba2a57cb16bbed501ac949ddd145ea38945e9 100644 (file)
@@ -43,11 +43,11 @@ void smb_uuid_unpack(const UUID_FLAT in, struct GUID *uu)
  Caller must free.
 *****************************************************************/
 
-char *guid_binstring(const struct GUID *guid)
+char *guid_binstring(TALLOC_CTX *mem_ctx, const struct GUID *guid)
 {
        UUID_FLAT guid_flat;
 
        smb_uuid_pack(*guid, &guid_flat);
 
-       return binary_string_rfc2254((char *)guid_flat.info, UUID_FLAT_SIZE);
+       return binary_string_rfc2254(mem_ctx, guid_flat.info, UUID_FLAT_SIZE);
 }