From d46b0db199079c884fbca77f5928c0e7c3f2ab0c Mon Sep 17 00:00:00 2001 From: xenolf Date: Sat, 6 Feb 2016 22:41:29 +0100 Subject: [PATCH] Fix missing return in loadPrivateKey --- crypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto.go b/crypto.go index 684b1100..8b23e2fc 100644 --- a/crypto.go +++ b/crypto.go @@ -47,7 +47,7 @@ func loadPrivateKey(file string) (crypto.PrivateKey, error) { switch keyBlock.Type { case "RSA PRIVATE KEY": - x509.ParsePKCS1PrivateKey(keyBlock.Bytes) + return x509.ParsePKCS1PrivateKey(keyBlock.Bytes) case "EC PRIVATE KEY": return x509.ParseECPrivateKey(keyBlock.Bytes) }