diff options
author | Matt Caswell <matt@openssl.org> | 2017-04-03 14:22:26 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-04-03 19:07:29 +0100 |
commit | a0cb628b17ecfd6e161870376b925a0045c99d00 (patch) | |
tree | e50dc51920bb67434083c2a9713bb83c9ce304ee | |
parent | 90049cea2331ffecb744ee23399be242a2866e2e (diff) |
Tweak a style issue
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3091)
-rw-r--r-- | ssl/ssl_lib.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 5b5bff1faa..24fc994d1f 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1799,7 +1799,7 @@ int SSL_write_ex(SSL *s, const void *buf, size_t num, size_t *written) int SSL_write_early_data(SSL *s, const void *buf, size_t num, size_t *written) { - int ret; + int ret, early_data_state; switch (s->early_data_state) { case SSL_EARLY_DATA_NONE: @@ -1830,14 +1830,13 @@ int SSL_write_early_data(SSL *s, const void *buf, size_t num, size_t *written) return ret; case SSL_EARLY_DATA_FINISHED_READING: - case SSL_EARLY_DATA_READ_RETRY: { - int early_data_state = s->early_data_state; + case SSL_EARLY_DATA_READ_RETRY: + early_data_state = s->early_data_state; /* We are a server writing to an unauthenticated client */ s->early_data_state = SSL_EARLY_DATA_UNAUTH_WRITING; ret = SSL_write_ex(s, buf, num, written); s->early_data_state = early_data_state; return ret; - } default: SSLerr(SSL_F_SSL_WRITE_EARLY_DATA, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |