Skip to content

Commit 5ce4c32

Browse files
committed
Use session object instead of self
The session object has :process_autoruns, not self
1 parent e209256 commit 5ce4c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/handler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def register_session(session)
248248
session.bootstrap(datastore, self)
249249
else
250250
# Process the auto-run scripts for this session
251-
if self.respond_to?(:process_autoruns)
252-
self.process_autoruns(datastore)
251+
if session.respond_to?(:process_autoruns)
252+
session.process_autoruns(datastore)
253253
end
254254
on_session(session)
255255
end

0 commit comments

Comments
 (0)