diff options
author | Andy Polyakov <appro@openssl.org> | 2012-05-16 12:47:36 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-05-16 12:47:36 +0000 |
commit | 41409651be9bdbd5296979e7bca273c8faefc9ef (patch) | |
tree | 7b7ffefae57d0ced75f0960cb7b1780f38b6b1d4 | |
parent | fd05495748e1875ba4e9b94c477553a3a7edfa92 (diff) | |
download | openssl-41409651be9bdbd5296979e7bca273c8faefc9ef.tar.gz |
s2_clnt.c: compensate for compiler bug.
-rw-r--r-- | ssl/s2_clnt.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c index 00ac158f9b..76b690ea13 100644 --- a/ssl/s2_clnt.c +++ b/ssl/s2_clnt.c @@ -359,12 +359,14 @@ static int get_server_hello(SSL *s) SSL_R_PEER_ERROR); return(-1); } -#ifdef __APPLE_CC__ - /* The Rhapsody 5.5 (a.k.a. MacOS X) compiler bug - * workaround. <appro@fy.chalmers.se> */ - s->hit=(i=*(p++))?1:0; -#else +#if 0 s->hit=(*(p++))?1:0; + /* Some [PPC?] compilers fail to increment p in above + statement, e.g. one provided with Rhapsody 5.5, but + most recent example XL C 11.1 for AIX, even without + optimization flag... */ +#else + s->hit=(*p)?1:0; p++; #endif s->s2->tmp.cert_type= *(p++); n2s(p,i); |