chg: [insert] brainfart

master
Jean-Louis Huynen 2019-09-18 09:37:39 +02:00
parent cd604827ce
commit 4e9cdc17a9
No known key found for this signature in database
GPG Key ID: 64799157F4BD6B93
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ func insertLeafCertificate(fp string, c certMapElm) error {
}
J:
q := `INSERT INTO "certificate" (hash, "is_CA", "is_SS", issuer, subject, cert_chain, is_valid_chain, file_path) VALUES ($1, $2, $3, $4, $5, $6, $7, $8) ON CONFLICT DO NOTHING`
_, err = db.Exec(q, c.CertHash, c.Certificate.IsCA, false, c.Certificate.Issuer.String(), c.Certificate.Subject.String(), nil, false, getFullPath(fp, c.CertHash))
_, err = db.Exec(q, c.CertHash, c.Certificate.IsCA, false, c.Certificate.Issuer.String(), c.Certificate.Subject.String(), nil, false, fp)
if err != nil {
return err
}