Changeset 988 for vendor/current/libcli/nbt/tools
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/libcli/nbt/tools/nmblookup.c
r740 r988 33 33 #include "param/param.h" 34 34 35 #include <string.h> 36 37 #define MAX_NETBIOSNAME_LEN 16 38 35 39 /* command line options */ 36 40 static struct { … … 191 195 struct nbt_name_socket *nbtsock; 192 196 NTSTATUS status = NT_STATUS_OK; 197 size_t nbt_len; 193 198 bool ret = true; 194 199 … … 211 216 } else { 212 217 node_name = talloc_strdup(tmp_ctx, name); 218 } 219 220 nbt_len = strlen(node_name); 221 if (nbt_len > MAX_NETBIOSNAME_LEN - 1) { 222 printf("The specified netbios name [%s] is too long.\n", 223 node_name); 224 talloc_free(tmp_ctx); 225 return false; 213 226 } 214 227 … … 247 260 int i, num_interfaces; 248 261 249 num_interfaces = iface_ count(ifaces);262 num_interfaces = iface_list_count(ifaces); 250 263 for (i=0;i<num_interfaces;i++) { 251 const char *bcast = iface_ n_bcast(ifaces, i);264 const char *bcast = iface_list_n_bcast(ifaces, i); 252 265 if (bcast == NULL) continue; 253 266 status = do_node_query(nbtsock, bcast, nbt_port, … … 358 371 } 359 372 360 load_interface s(NULL, lpcfg_interfaces(cmdline_lp_ctx), &ifaces);373 load_interface_list(NULL, cmdline_lp_ctx, &ifaces); 361 374 362 375 ev = s4_event_context_init(talloc_autofree_context());
Note:
See TracChangeset
for help on using the changeset viewer.