stubby: fix handling of pkis in config (#8888)
authorJonathan G. Underwood <jonathan.underwood@gmail.com>
Thu, 9 May 2019 23:26:38 +0000 (00:26 +0100)
committerJonathan G. Underwood <jonathan.underwood@gmail.com>
Sat, 11 May 2019 09:26:09 +0000 (10:26 +0100)
Signed-off-by: Jonathan G. Underwood <jonathan.underwood@gmail.com>
net/stubby/files/stubby.init

index 4a975e39d58114f70c8a82f74e626a279f75ba89..ff2f0ef3ea66526bcda585a99511a5cfb8096207 100755 (executable)
@@ -136,7 +136,7 @@ generate_config()
         handle_resolver_spki()
         {
             local val="$1"
-            local digest="${val%/*}"
+            local digest="${val%%/*}"
             local value="${val#*/}"
 
             if [ "$tls_pubkey_pinset_section" = 0 ]; then