Changeset 988 for vendor/current/source3/libsmb/clidgram.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/libsmb/clidgram.c
r746 r988 26 26 #include "libsmb/nmblib.h" 27 27 #include "messages.h" 28 #include "librpc/gen_ndr/samr.h" 29 #include "../lib/util/pidfile.h" 28 30 29 31 /* … … 32 34 33 35 static bool cli_prep_mailslot(bool unique, const char *mailslot, 34 uint16 priority,36 uint16_t priority, 35 37 char *buf, int len, 36 38 const char *srcname, int src_type, … … 141 143 } 142 144 143 my_acct_name = talloc_asprintf(talloc_tos(), "%s$", global_myname());145 my_acct_name = talloc_asprintf(talloc_tos(), "%s$", lp_netbios_name()); 144 146 if (my_acct_name == NULL) { 145 147 goto fail; … … 150 152 151 153 s->request_count = 0; 152 s->computer_name = global_myname();154 s->computer_name = lp_netbios_name(); 153 155 s->user_name = my_acct_name; 154 156 s->mailslot_name = my_mailslot; … … 171 173 ret = cli_prep_mailslot(false, NBT_MAILSLOT_NTLOGON, 0, 172 174 (char *)blob.data, blob.length, 173 global_myname(), 0, domain_name, 0x1c,175 lp_netbios_name(), 0, domain_name, 0x1c, 174 176 dc_ss, dgm_id, p); 175 177 fail: … … 228 230 blob = p.smb.body.trans.data; 229 231 230 r = TALLOC_ZERO_P(mem_ctx, struct netlogon_samlogon_response);232 r = talloc_zero(mem_ctx, struct netlogon_samlogon_response); 231 233 if (!r) { 232 234 return false; … … 323 325 } 324 326 state->my_mailslot = mailslot_name( 325 state, (( struct sockaddr_in *)dc_addr)->sin_addr);327 state, ((const struct sockaddr_in *)dc_addr)->sin_addr); 326 328 if (tevent_req_nomem(state->my_mailslot, req)) { 327 329 return tevent_req_post(req, ev); 328 330 } 329 state->nmbd_pid = pidfile_pid( "nmbd");331 state->nmbd_pid = pidfile_pid(lp_pid_directory(), "nmbd"); 330 332 if (state->nmbd_pid == 0) { 331 333 DEBUG(3, ("No nmbd found\n")); … … 452 454 NTSTATUS status = NT_STATUS_NO_MEMORY; 453 455 454 ev = tevent_context_init(frame);456 ev = samba_tevent_context_init(frame); 455 457 if (ev == NULL) { 456 458 goto fail;
Note:
See TracChangeset
for help on using the changeset viewer.