exploit/sunrpc: return nil on error

git-svn-id: file:///home/svn/framework3/trunk@8394 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-02-07 03:51:14 +00:00
parent c6c1afe543
commit 7d9d169a1a
1 changed files with 3 additions and 0 deletions

View File

@ -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