Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: net/data/ssl/scripts/generate-policy-certs.sh

Issue 1059303002: Don't process HSTS/HPKP headers when host is an IP address (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ugly workaround for mac 10.6 getaddrinfo bug Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/data/ssl/scripts/generate-cross-signed-certs.sh ('k') | net/data/ssl/scripts/generate-test-certs.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/ssl/scripts/generate-policy-certs.sh
diff --git a/net/data/ssl/scripts/generate-policy-certs.sh b/net/data/ssl/scripts/generate-policy-certs.sh
index 5507d5b13990b4d41af595441c45e886c2745b63..bef21f4bfc191006bd63d4ca2ca71356ca9de654 100755
--- a/net/data/ssl/scripts/generate-policy-certs.sh
+++ b/net/data/ssl/scripts/generate-policy-certs.sh
@@ -11,8 +11,7 @@
# When validating, supplying no policy OID should not result in an error.
try() {
- echo "$@"
- "$@" || exit 1
+ "$@" || (e=$?; echo "$@" > /dev/stderr; exit $e)
}
try rm -rf out
« no previous file with comments | « net/data/ssl/scripts/generate-cross-signed-certs.sh ('k') | net/data/ssl/scripts/generate-test-certs.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698