Skip to content

Commit

Permalink
Fixed nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
rwincey committed Apr 24, 2023
1 parent c367c8c commit 3599af1
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 3599af1

Please sign in to comment.