Skip to content

result-or-error relies on global var that does not have do be initialized  #5

@simkoc

Description

@simkoc

As the headline says the macro result-or-error relies on the global var *ssh-connection*. However, this variable does not has to be initialized as you can pass your own sessions to functions and do not need to rely on this global variable. E.g. in case of threading the *ssh-connection* is NIL for a (new) thread even though you use the the with-ssh-connection macro in the parent thread, subsequently if you pass the session to the thread you can run into this problem.

This results for rare case in (session *ssh-connection*) being called even though *ssh-connection* is NIL, thus a very baffling exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions