From: Bodo Möller Date: Fri, 3 Sep 1999 22:37:38 +0000 (+0000) Subject: use explicit constant 11 just once X-Git-Tag: OpenSSL_0_9_5beta1~549 X-Git-Url: https://git.openssl.org/?a=commitdiff_plain;h=ba3a6e7262c44818d3b4b9a090b7ed9f7d74e639;hp=f70df1b8870d4a0bee2769d8205d90beb5baa084;p=openssl.git use explicit constant 11 just once --- diff --git a/ssl/s23_srvr.c b/ssl/s23_srvr.c index 9095df2793..94d593f09f 100644 --- a/ssl/s23_srvr.c +++ b/ssl/s23_srvr.c @@ -186,7 +186,7 @@ end: int ssl23_get_client_hello(SSL *s) { - char buf_space[11]; + char buf_space[11]; /* request this many bytes in initial read */ char *buf= &(buf_space[0]); unsigned char *p,*d,*dd; unsigned int i; @@ -202,8 +202,8 @@ int ssl23_get_client_hello(SSL *s) if (!ssl3_setup_buffers(s)) goto err; - n=ssl23_read_bytes(s,11); - if (n != 11) return(n); /* n == -1 || n == 0 */ + n=ssl23_read_bytes(s, sizeof buf_space); + if (n != sizeof buf_space) return(n); /* n == -1 || n == 0 */ p=s->packet;