Skip to content

Commit

Permalink
Merge pull request #32 from dbitbox/xpub-fix
Browse files Browse the repository at this point in the history
return on invalid input (empty string)
  • Loading branch information
dbitbox committed Jul 25, 2015
2 parents e5c201e + 3429a7a commit f0c02d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commander.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ static void commander_process_xpub(yajl_val json_node)

if (!value || !strlens(value)) {
commander_fill_report("xpub", FLAG_ERR_INVALID_CMD, ERROR);
return;
}

wallet_report_xpub(value, strlens(value), xpub);
Expand Down

0 comments on commit f0c02d6

Please sign in to comment.