diff options
author | Kai Engert <kaie@kuix.de> | 2013-10-08 11:41:04 +0200 |
---|---|---|
committer | Kai Engert <kaie@kuix.de> | 2013-10-08 11:41:04 +0200 |
commit | 94abcf1b3069286b5507d62ba6d3298fdaa63e1b (patch) | |
tree | eb80d665c0d3f92a50aa1badae67c927cc0a9e27 /tests/chains | |
parent | 53b9d6d916b6d30747771221451a045b1bbeb8e7 (diff) | |
download | nss-hg-94abcf1b3069286b5507d62ba6d3298fdaa63e1b.tar.gz |
Bug 436414, bustage fix, regular expression to extract port number failed if hostname contains a digit
Diffstat (limited to 'tests/chains')
-rw-r--r-- | tests/chains/chains.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/chains/chains.sh b/tests/chains/chains.sh index d0c954b5a..8ba2c08db 100644 --- a/tests/chains/chains.sh +++ b/tests/chains/chains.sh @@ -972,8 +972,9 @@ check_ocsp() # sample line: # URI: "http://ocsp.server:2601" OCSP_HOST=$(${BINDIR}/pp -t certificate -i ${CERT_FILE} | grep URI | sed "s/.*:\/\///" | sed "s/:.*//") - OCSP_PORT=$(${BINDIR}/pp -t certificate -i ${CERT_FILE} | grep URI | sed "s/.*:.*:\([0-9]*\).*\"/\1/") + OCSP_PORT=$(${BINDIR}/pp -t certificate -i ${CERT_FILE} | grep URI | sed "s/^.*:.*:\/\/.*:\([0-9]*\).*$/\1/") + echo "tstclnt -h ${OCSP_HOST} -p ${OCSP_PORT} -q -t 20" tstclnt -h ${OCSP_HOST} -p ${OCSP_PORT} -q -t 20 return $? } |