Skip to content

Commit

Permalink
Merge pull request #29 from praetorian-inc/rpc
Browse files Browse the repository at this point in the history
rpc bug fix
  • Loading branch information
praetorian-thendrickson committed Nov 27, 2023
2 parents 81636c4 + 50c9844 commit f716710
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 f716710

Please sign in to comment.