summaryrefslogtreecommitdiff
path: root/ssl/s2_clnt.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2000-01-04 03:33:18 +0000
committerAndy Polyakov <appro@openssl.org>2000-01-04 03:33:18 +0000
commit37b0d5d05db2ac7487830181c0b81f565de4e51f (patch)
tree370739aa1310dac93e030b27b547bc69490109ae /ssl/s2_clnt.c
parent1eab9a1fbb6bcc3c616881da00c68bb2ef61589b (diff)
downloadopenssl-new-37b0d5d05db2ac7487830181c0b81f565de4e51f.tar.gz
Rhapsody 5.5 (a.k.a. MacOS X) compiler bug workaround. At the very least
passes 'make test' now:-)
Diffstat (limited to 'ssl/s2_clnt.c')
-rw-r--r--ssl/s2_clnt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c
index 956c0280c9..d047e89ed6 100644
--- a/ssl/s2_clnt.c
+++ b/ssl/s2_clnt.c
@@ -310,7 +310,13 @@ 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
s->hit=(*(p++))?1:0;
+#endif
s->s2->tmp.cert_type= *(p++);
n2s(p,i);
if (i < s->version) s->version=i;