Use switch instead of multiple ifs
authorAlessandro Ghedini <alessandro@ghedini.me>
Tue, 13 Sep 2016 23:51:02 +0000 (00:51 +0100)
committerRich Salz <rsalz@openssl.org>
Fri, 16 Sep 2016 15:07:08 +0000 (11:07 -0400)
commit4f8a5f4da94bb70e06cf709beb1ddfa57a218c3d
tree0e9c3d95fe673d186e77587202eb39af44466a73
parentc5ad3076a6c076ac9f8449c393dd14c16b737560
Use switch instead of multiple ifs

Makes the logic a little bit clearer.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1571)
ssl/statem/statem.c