]> git.ipfire.org Git - thirdparty/strongswan.git/commit
smp: Make code that encodes identities more readable
authorTobias Brunner <tobias@strongswan.org>
Thu, 14 Mar 2024 12:51:06 +0000 (13:51 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Mar 2024 12:51:06 +0000 (13:51 +0100)
commitc035e4ca9300fd952a7ff932f53b204894966513
tree82beef5eef32211c3a8e308dcdc625a3d69bf950
parent91f209b8789135d8888452a391588afba421e1fb
smp: Make code that encodes identities more readable

In particular for static code analyzers.  The previous nesting of case
statements inside of a while loop that's inside a switch statement and
a wrapping block with declaration was quite weird and Coverity didn't
like it (it figured that `type` was uninitialized even when it assumed
that get_type() returned a known type for which a case statement
existed).
src/libcharon/plugins/smp/smp.c