Skip to content

Commit 267efd6

Browse files
committed
Fix off-by-one
1 parent c8dc7a6 commit 267efd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

probe_netbios.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (this *ProbeNetbios) ProcessReplies() {
8282

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

85-
reply := this.ParseReply(buff[0 : rlen-1])
85+
reply := this.ParseReply(buff[0 : rlen])
8686
if len(reply.Names) == 0 && len(reply.Addresses) == 0 {
8787
continue
8888
}

0 commit comments

Comments
 (0)