Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/libsmb/clidgram.c

    r746 r988  
    2626#include "libsmb/nmblib.h"
    2727#include "messages.h"
     28#include "librpc/gen_ndr/samr.h"
     29#include "../lib/util/pidfile.h"
    2830
    2931/*
     
    3234
    3335static bool cli_prep_mailslot(bool unique, const char *mailslot,
    34                        uint16 priority,
     36                       uint16_t priority,
    3537                       char *buf, int len,
    3638                       const char *srcname, int src_type,
     
    141143        }
    142144
    143         my_acct_name = talloc_asprintf(talloc_tos(), "%s$", global_myname());
     145        my_acct_name = talloc_asprintf(talloc_tos(), "%s$", lp_netbios_name());
    144146        if (my_acct_name == NULL) {
    145147                goto fail;
     
    150152
    151153        s->request_count        = 0;
    152         s->computer_name        = global_myname();
     154        s->computer_name        = lp_netbios_name();
    153155        s->user_name            = my_acct_name;
    154156        s->mailslot_name        = my_mailslot;
     
    171173        ret = cli_prep_mailslot(false, NBT_MAILSLOT_NTLOGON, 0,
    172174                                (char *)blob.data, blob.length,
    173                                 global_myname(), 0, domain_name, 0x1c,
     175                                lp_netbios_name(), 0, domain_name, 0x1c,
    174176                                dc_ss, dgm_id, p);
    175177fail:
     
    228230        blob = p.smb.body.trans.data;
    229231
    230         r = TALLOC_ZERO_P(mem_ctx, struct netlogon_samlogon_response);
     232        r = talloc_zero(mem_ctx, struct netlogon_samlogon_response);
    231233        if (!r) {
    232234                return false;
     
    323325        }
    324326        state->my_mailslot = mailslot_name(
    325                 state, ((struct sockaddr_in *)dc_addr)->sin_addr);
     327                state, ((const struct sockaddr_in *)dc_addr)->sin_addr);
    326328        if (tevent_req_nomem(state->my_mailslot, req)) {
    327329                return tevent_req_post(req, ev);
    328330        }
    329         state->nmbd_pid = pidfile_pid("nmbd");
     331        state->nmbd_pid = pidfile_pid(lp_pid_directory(), "nmbd");
    330332        if (state->nmbd_pid == 0) {
    331333                DEBUG(3, ("No nmbd found\n"));
     
    452454        NTSTATUS status = NT_STATUS_NO_MEMORY;
    453455
    454         ev = tevent_context_init(frame);
     456        ev = samba_tevent_context_init(frame);
    455457        if (ev == NULL) {
    456458                goto fail;
Note: See TracChangeset for help on using the changeset viewer.