Don't print byte data if the byte count is 0.

In "print_smb()", Don't go past the passed-in length when printing the
word data.

The andX command is 1 byte, not 2 bytes.

Check that the andX offset is after the offset of the previous SMB
information, so we don't get caught in a loop if there's a bogus andX
offset.
1 file changed
tree: 760fb4b2ba75fba134107c0ac2181bc07eca460f
  1. lbl/
  2. missing/
  3. tests/
  4. win32/
  5. .cvsignore
  6. acconfig.h
  7. aclocal.m4
  8. addrtoname.c
  9. addrtoname.h
  10. ah.h
  11. aodv.h
  12. appletalk.h
  13. arcnet.h
  14. atime.awk
  15. atm.h
  16. atmuni31.h
  17. bgp.h
  18. bootp.h
  19. bpf_dump.c
  20. CHANGES
  21. chdlc.h
  22. config.guess
  23. config.h.in
  24. config.sub
  25. configure
  26. configure.in
  27. cpack.c
  28. cpack.h
  29. CREDITS
  30. decnet.h
  31. decode_prefix.h
  32. enc.h
  33. esp.h
  34. ether.h
  35. ethertype.h
  36. extract.h
  37. fddi.h
  38. FILES
  39. gmpls.c
  40. gmpls.h
  41. gmt2local.c
  42. gmt2local.h
  43. icmp6.h
  44. ieee802_11.h
  45. ieee802_11_radio.h
  46. igrp.h
  47. INSTALL
  48. install-sh
  49. interface.h
  50. ip.h
  51. ip6.h
  52. ipfc.h
  53. ipproto.c
  54. ipproto.h
  55. ipsec_doi.h
  56. ipx.h
  57. isakmp.h
  58. l2tp.h
  59. l2vpn.c
  60. l2vpn.h
  61. lane.h
  62. LICENSE
  63. llc.h
  64. machdep.c
  65. machdep.h
  66. Makefile-devel-adds
  67. Makefile.in
  68. makemib
  69. mib.h
  70. mkdep
  71. mpls.h
  72. nameser.h
  73. netbios.h
  74. netdissect.h
  75. nfs.h
  76. nfsfh.h
  77. nlpid.c
  78. nlpid.h
  79. ntp.h
  80. oakley.h
  81. ospf.h
  82. ospf6.h
  83. oui.c
  84. oui.h
  85. packetdat.awk
  86. parsenfsfh.c
  87. pcap-missing.h
  88. pf.h
  89. PLATFORMS
  90. pmap_prot.h
  91. ppp.h
  92. print-802_11.c
  93. print-ah.c
  94. print-aodv.c
  95. print-ap1394.c
  96. print-arcnet.c
  97. print-arp.c
  98. print-ascii.c
  99. print-atalk.c
  100. print-atm.c
  101. print-beep.c
  102. print-bfd.c
  103. print-bgp.c
  104. print-bootp.c
  105. print-cdp.c
  106. print-chdlc.c
  107. print-cip.c
  108. print-cnfp.c
  109. print-decnet.c
  110. print-dhcp6.c
  111. print-domain.c
  112. print-dvmrp.c
  113. print-eap.c
  114. print-egp.c
  115. print-eigrp.c
  116. print-enc.c
  117. print-esp.c
  118. print-ether.c
  119. print-fddi.c
  120. print-fr.c
  121. print-frag6.c
  122. print-gre.c
  123. print-hsrp.c
  124. print-icmp.c
  125. print-icmp6.c
  126. print-igmp.c
  127. print-igrp.c
  128. print-ip.c
  129. print-ip6.c
  130. print-ip6opts.c
  131. print-ipcomp.c
  132. print-ipfc.c
  133. print-ipx.c
  134. print-isakmp.c
  135. print-isoclns.c
  136. print-juniper.c
  137. print-krb.c
  138. print-l2tp.c
  139. print-lane.c
  140. print-ldp.c
  141. print-llc.c
  142. print-lmp.c
  143. print-lspping.c
  144. print-lwres.c
  145. print-mobile.c
  146. print-mobility.c
  147. print-mpls.c
  148. print-msdp.c
  149. print-netbios.c
  150. print-nfs.c
  151. print-ntp.c
  152. print-null.c
  153. print-ospf.c
  154. print-ospf6.c
  155. print-pflog.c
  156. print-pim.c
  157. print-ppp.c
  158. print-pppoe.c
  159. print-pptp.c
  160. print-radius.c
  161. print-raw.c
  162. print-rip.c
  163. print-ripng.c
  164. print-rsvp.c
  165. print-rt6.c
  166. print-rx.c
  167. print-sctp.c
  168. print-sip.c
  169. print-sl.c
  170. print-sll.c
  171. print-smb.c
  172. print-snmp.c
  173. print-stp.c
  174. print-sunatm.c
  175. print-sunrpc.c
  176. print-symantec.c
  177. print-syslog.c
  178. print-tcp.c
  179. print-telnet.c
  180. print-tftp.c
  181. print-timed.c
  182. print-token.c
  183. print-udp.c
  184. print-vjc.c
  185. print-vrrp.c
  186. print-wb.c
  187. print-zephyr.c
  188. README
  189. Readme.Win32
  190. route6d.h
  191. rpc_auth.h
  192. rpc_msg.h
  193. rx.h
  194. sctpConstants.h
  195. sctpHeader.h
  196. send-ack.awk
  197. setsignal.c
  198. setsignal.h
  199. slcompress.h
  200. slip.h
  201. sll.h
  202. smb.h
  203. smbutil.c
  204. stime.awk
  205. strcasecmp.c
  206. tcp.h
  207. tcpdump-stdinc.h
  208. tcpdump.1
  209. tcpdump.c
  210. telnet.h
  211. timed.h
  212. TODO
  213. token.h
  214. udp.h
  215. util.c
  216. VERSION
  217. vfprintf.c