From: Jonathan G. Underwood Date: Thu, 9 May 2019 23:26:38 +0000 (+0100) Subject: stubby: fix handling of pkis in config (#8888) X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=5db119a1cc2e1465fa202fb24d7f7aad14bf9698;p=openwrt-packages.git stubby: fix handling of pkis in config (#8888) Signed-off-by: Jonathan G. Underwood --- diff --git a/net/stubby/files/stubby.init b/net/stubby/files/stubby.init index 4a975e39d..ff2f0ef3e 100755 --- a/net/stubby/files/stubby.init +++ b/net/stubby/files/stubby.init @@ -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