Signed-off-by: Andrew Tridgell <tridge@samba.org>
struct rap_WserverGetInfo r;
NTSTATUS status;
char servername[17];
+ size_t converted_size;
r.in.level = 0;
r.in.bufsize = 0xffff;
memcpy(servername, r.out.info.info0.name, 16);
servername[16] = '\0';
- if (!pull_ascii_talloc(mem_ctx, name, servername, NULL)) {
+ if (!pull_ascii_talloc(mem_ctx, name, servername, &converted_size)) {
return NT_STATUS_NO_MEMORY;
}
ZERO_STRUCT(user_session_key);
if (!push_ucs2_talloc(samlogon_state->mem_ctx,
- &unicodepw, samlogon_state->password, NULL)) {
+ &unicodepw, samlogon_state->password, &converted_size)) {
DEBUG(0, ("push_ucs2_allocate failed!\n"));
exit(1);
}