Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Add check to only continue with loading a plugin if only two files we…
Browse files Browse the repository at this point in the history
…re passed to control.Load
  • Loading branch information
geauxvirtual committed Oct 27, 2015
1 parent 921b4fc commit 553790d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ func (p *pluginControl) Load(files ...string) (core.CatalogedPlugin, perror.Puls
f := map[string]interface{}{
"_block": "load",
}
if len(files) > 2 {
return nil, perror.New(errors.New("Load plugin limited to a single plugin plus signature file if plugin is signed"))
}

//Check plugin signing
var signed bool
Expand Down

0 comments on commit 553790d

Please sign in to comment.