diff options
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/conf/conf_mod.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/ocsp/ocsp_ht.c | 6 | ||||
-rw-r--r-- | lib/libcrypto/x509v3/v3_utl.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/conf/conf_mod.c b/lib/libcrypto/conf/conf_mod.c index d45adea8513..812e60dc704 100644 --- a/lib/libcrypto/conf/conf_mod.c +++ b/lib/libcrypto/conf/conf_mod.c @@ -587,7 +587,7 @@ int CONF_parse_list(const char *list_, int sep, int nospc, { if (nospc) { - while(*lstart && isspace((unsigned char)*lstart)) + while(isspace((unsigned char)*lstart)) lstart++; } p = strchr(lstart, sep); diff --git a/lib/libcrypto/ocsp/ocsp_ht.c b/lib/libcrypto/ocsp/ocsp_ht.c index 9213e58ae49..2c481718835 100644 --- a/lib/libcrypto/ocsp/ocsp_ht.c +++ b/lib/libcrypto/ocsp/ocsp_ht.c @@ -120,7 +120,7 @@ Content-Length: %d\r\n\r\n"; goto err; } /* Skip past white space to start of response code */ - while(*p && isspace((unsigned char)*p)) p++; + while(isspace((unsigned char)*p)) p++; if(!*p) { OCSPerr(OCSP_F_OCSP_SENDREQ_BIO,OCSP_R_SERVER_RESPONSE_PARSE_ERROR); goto err; @@ -137,7 +137,7 @@ Content-Length: %d\r\n\r\n"; retcode = strtoul(p, &r, 10); if(*r) goto err; /* Skip over any leading white space in message */ - while(*q && isspace((unsigned char)*q)) q++; + while(isspace((unsigned char)*q)) q++; if(*q) { /* Finally zap any trailing white space in message (include CRLF) */ /* We know q has a non white space character so this is OK */ @@ -156,7 +156,7 @@ Content-Length: %d\r\n\r\n"; /* Find blank line marking beginning of content */ while(BIO_gets(mem, tmpbuf, 512) > 0) { - for(p = tmpbuf; *p && isspace((unsigned char)*p); p++) continue; + for(p = tmpbuf; isspace((unsigned char)*p); p++) continue; if(!*p) break; } if(*p) { diff --git a/lib/libcrypto/x509v3/v3_utl.c b/lib/libcrypto/x509v3/v3_utl.c index 466c91d0e8d..f23a8d29a0a 100644 --- a/lib/libcrypto/x509v3/v3_utl.c +++ b/lib/libcrypto/x509v3/v3_utl.c @@ -337,7 +337,7 @@ static char *strip_spaces(char *name) char *p, *q; /* Skip over leading spaces */ p = name; - while(*p && isspace((unsigned char)*p)) p++; + while(isspace((unsigned char)*p)) p++; if(!*p) return NULL; q = p + strlen(p) - 1; while((q != p) && isspace((unsigned char)*q)) q--; |