Skip to content

Commit 50c9844

Browse files
rpc bug fix
1 parent 81636c4 commit 50c9844

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/plugins/services/linuxrpc/linuxrpc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ func parseRPCInfo(response []byte, lookupResponse *plugins.ServiceRPC) error {
125125

126126
for valueFollows == 1 {
127127
tmp := plugins.RPCB{}
128+
if len(response) < 0x20 {
129+
return nil
130+
}
128131

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

0 commit comments

Comments
 (0)