SPM: Check client version before creating handle

If the client version validation fails, an error should be returned.
If the connection handle is already created at this point, the handle
needs to be free-ed.

This patch move the handling creation after all validations to avoid
unnecessary creation and destruction.

Change-Id: Ifdb018cfd4086c9b65edc35291883081e3b5cc73
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
1 file changed