Use Client_find_by_session() instead of a few open-coded loops. master
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 7 Jan 2018 17:56:18 +0000 (18:56 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 7 Jan 2018 17:56:18 +0000 (18:56 +0100)
commitb42ea6f54c76d81e58b152bcbee2fa1042a1716a
tree1f5b0b51f046e3b2a06010f34d548466f78053bb
parentaa21dde5fbd77ecefb946961ea2231d31d8f8e3b
Use Client_find_by_session() instead of a few open-coded loops.

This slightly changes the logic in a couple of places where we
previously only checked a client's session ID after we verified
that the client was authenticated. I don't think this change actually
matters though because session IDs are unique.
src/client.c
src/messagehandler.c