Merge pull request #2938 from lukechampine/invalid-key-segfault

vere: handle failed cue of private key file
This commit is contained in:
Joe Bryan 2020-05-26 11:18:46 -07:00 committed by GitHub
commit d057208a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -612,7 +612,14 @@ _boothack_key(u3_noun kef)
// +seed:able:jael: private key file
//
seed = u3ke_cue(u3k(u3t(des)));
u3_noun pro = u3m_soft(0, u3ke_cue, u3k(u3t(des)));
if ( u3_blip != u3h(pro) ) {
u3l_log("dawn: unable to cue private key\r\n");
exit(1);
}
seed = u3k(u3t(pro));
u3z(pro);
// local reference, not counted
//
ship = u3h(seed);