Skip to content

Commit

Permalink
Fix off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
hdm committed Jul 23, 2018
1 parent c8dc7a6 commit 267efd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probe_netbios.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (this *ProbeNetbios) ProcessReplies() {

ip := raddr.(*net.UDPAddr).IP.String()

reply := this.ParseReply(buff[0 : rlen-1])
reply := this.ParseReply(buff[0 : rlen])
if len(reply.Names) == 0 && len(reply.Addresses) == 0 {
continue
}
Expand Down

0 comments on commit 267efd6

Please sign in to comment.