Permalink
Browse files

Print an error when no encoder is specified

git-svn-id: file:///home/svn/framework3/trunk@3967 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information...
1 parent 44b6ef4 commit 4770e8d6073403d31696110d847bf9cff547acaf HD Moore committed Sep 26, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 msfencode
View
@@ -132,7 +132,7 @@ case cmd
when "list"
$stderr.puts(dump_encoders(arch))
when "dump"
- enc = $framework.encoders.create(encoder)
+ enc = encoder ? $framework.encoders.create(encoder) : nil
if (enc)
$stderr.puts(Msf::Serializer::ReadableText.dump_module(enc))

0 comments on commit 4770e8d

Please sign in to comment.