From 1cfbcba8139f3ec4775607153935918a3bd02171 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 8 Feb 2022 15:49:48 +1100 Subject: [PATCH] [client] main: fix failure to check KVMFR udata at connect --- client/src/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index f6969bdd..54c4bf54 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1264,11 +1264,12 @@ restart: while(g_state.state == APP_STATE_RUNNING) { - if ((status = lgmpClientSessionInit(g_state.lgmp, &udataSize, (uint8_t **)&udata)) == LGMP_OK) - break; - + status = lgmpClientSessionInit(g_state.lgmp, &udataSize, (uint8_t **)&udata); switch(status) { + case LGMP_OK: + break; + case LGMP_ERR_INVALID_VERSION: { reportBadVersion();