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>
Wed, 21 Sep 2016 14:39:33 +0000 (10:39 -0400)
commit64d1cc09f912fdc92b12588cc9ad189978051a3e
tree34b2f13f9a628b745b4487119184a3021791ad90
parent6bdd2637daa862706598d04ae2750a920ebee0ae
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)
(cherry picked from commit 4f8a5f4da94bb70e06cf709beb1ddfa57a218c3d)
ssl/statem/statem.c