Skip to content

Commit

Permalink
Merge pull request #1213 from rwincey/console_fix
Browse files Browse the repository at this point in the history
Fixed nil pointer in console
  • Loading branch information
moloch-- committed Apr 25, 2023
2 parents d92aaa9 + 3599af1 commit 8a9437c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,12 @@ func (con *SliverConsoleClient) triggerBeaconTaskCallback(data []byte) {
if beacon != nil {
con.PrintEventSuccessf("%s completed task %s", beacon.Name, strings.Split(task.ID, "-")[0])
}
task, err = con.Rpc.GetBeaconTaskContent(ctx, &clientpb.BeaconTask{
task_content, err := con.Rpc.GetBeaconTaskContent(ctx, &clientpb.BeaconTask{
ID: task.ID,
})
con.Printf(Clearln + "\r")
if err == nil {
callback(task)
callback(task_content)
} else {
con.PrintErrorf("Could not get beacon task content: %s\n", err)
}
Expand Down

0 comments on commit 8a9437c

Please sign in to comment.