only looking for type key when querying keyname

This commit is contained in:
Ted Unangst 2019-04-10 18:42:22 -04:00
parent 320666a131
commit 9f5569c518
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func ziggy(user *WhatAbout) (keyname string, key *rsa.PrivateKey) {
func zaggy(keyname string) (key *rsa.PublicKey) { func zaggy(keyname string) (key *rsa.PublicKey) {
db := opendatabase() db := opendatabase()
row := db.QueryRow("select pubkey from honkers where xid = ?", keyname) row := db.QueryRow("select pubkey from honkers where flavor = 'key' and xid = ?", keyname)
var data string var data string
err := row.Scan(&data) err := row.Scan(&data)
savekey := false savekey := false