Skip to content

Commit

Permalink
Prevent pool crash when password is null
Browse files Browse the repository at this point in the history
  • Loading branch information
songnob committed Apr 9, 2018
1 parent 7135260 commit faf926b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
// If the password is x, aka, old-logins, we're not going to allow detailed review of miners.

// Miner Variables
// prevent pool crash when pass is null
if (!pass) pass = 'x';
let pass_split = pass.split(":");
this.error = "";
this.identifier = pass_split[0];
Expand Down

1 comment on commit faf926b

@bobbieltd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch.

Please sign in to comment.