diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:40:07 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:40:07 +0000 |
commit | 4be31d069e2a623a24ce211c592507babf7f8f11 (patch) | |
tree | 2cbb187bc73dd5574e1b9b56e1c6edde2dffcff0 /lib/libcrypto/ocsp | |
parent | 43642f79683c518987fc0fcf709135b4be10ac87 (diff) |
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'lib/libcrypto/ocsp')
-rw-r--r-- | lib/libcrypto/ocsp/ocsp_ht.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |