exploit/sunrpc: return nil on error
git-svn-id: file:///home/svn/framework3/trunk@8394 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
c6c1afe543
commit
7d9d169a1a
|
@ -65,6 +65,7 @@ module Exploit::Remote::SunRPC
|
|||
err << 'RPC did not execute' if arr[4] != SUCCESS
|
||||
err << 'Program not available' if arr[5] == 0
|
||||
print_error(err)
|
||||
return nil
|
||||
end
|
||||
|
||||
rpcobj.pport = arr[5]
|
||||
|
@ -93,6 +94,7 @@ module Exploit::Remote::SunRPC
|
|||
end
|
||||
end
|
||||
print_error("#{rhost} - #{err}")
|
||||
return nil
|
||||
end
|
||||
return ret
|
||||
end
|
||||
|
@ -125,6 +127,7 @@ module Exploit::Remote::SunRPC
|
|||
else err << "Unknown Error"
|
||||
end
|
||||
print_error("#{rhost} - #{err}")
|
||||
return nil
|
||||
end
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Reference in New Issue