diff options
author | 2014-04-17 10:17:56 +0000 | |
---|---|---|
committer | 2014-04-17 10:17:56 +0000 | |
commit | bd4463e122c58f75e2437c53655d4f4938fcbcce (patch) | |
tree | 4381ebc865ed6d7007aadb5d9b6771bbdd2e5cef | |
parent | Eliminate a couple of always-NULL parameters. Eliminate some (diff) | |
download | wireguard-openbsd-bd4463e122c58f75e2437c53655d4f4938fcbcce.tar.xz wireguard-openbsd-bd4463e122c58f75e2437c53655d4f4938fcbcce.zip |
minimal fix for ', ' issue in jsing's indent script
-rw-r--r-- | lib/libssl/src/apps/ca.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/libssl/src/apps/ca.c b/lib/libssl/src/apps/ca.c index 7a68552c62e..cf6015b73cc 100644 --- a/lib/libssl/src/apps/ca.c +++ b/lib/libssl/src/apps/ca.c @@ -2127,12 +2127,13 @@ certify_spkac(X509 **xret, char *infile, EVP_PKEY *pkey, X509 *x509, /* Skip past any leading X. X: X, etc to allow for * multiple instances */ - for (buf = cv->name; *buf; buf++) - if ((*buf == ':') || (*buf == ', ') || (*buf == '.')) { - buf++; - if (*buf) - type = buf; - break; + for (buf = cv->name; *buf; buf++) { + if ((*buf == ':') || (*buf == ',') || (*buf == '.')) { + buf++; + if (*buf) + type = buf; + break; + } } buf = cv->value; @@ -2667,7 +2668,7 @@ unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, ASN1_GENERALIZEDTIME *comp_time = NULL; tmp = BUF_strdup(str); - p = strchr(tmp, ', '); + p = strchr(tmp, ','); rtime_str = tmp; @@ -2675,7 +2676,7 @@ unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, *p = '\0'; p++; reason_str = p; - p = strchr(p, ', '); + p = strchr(p, ','); if (p) { *p = '\0'; arg_str = p + 1; |