From 9f5569c5184ecb95e7dbff6cf4954049b5b13ccf Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 10 Apr 2019 18:42:22 -0400 Subject: [PATCH] only looking for type key when querying keyname --- honk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/honk.go b/honk.go index 3fefe41..7cc5227 100644 --- a/honk.go +++ b/honk.go @@ -75,7 +75,7 @@ func ziggy(user *WhatAbout) (keyname string, key *rsa.PrivateKey) { func zaggy(keyname string) (key *rsa.PublicKey) { 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 err := row.Scan(&data) savekey := false