Skip to content

Commit

Permalink
rpc bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
praetorian-thendrickson committed Nov 27, 2023
1 parent 81636c4 commit 50c9844
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/plugins/services/linuxrpc/linuxrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ func parseRPCInfo(response []byte, lookupResponse *plugins.ServiceRPC) error {

for valueFollows == 1 {
tmp := plugins.RPCB{}
if len(response) < 0x20 {
return nil
}

tmp.Program = int(binary.BigEndian.Uint32(response[0:4]))
response = response[4:]
Expand Down

0 comments on commit 50c9844

Please sign in to comment.