Skip to content

Commit 3ea1f22

Browse files
committed
additional fix for scan biuld issue in examples
1 parent 23f75fd commit 3ea1f22

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/posix/wh_posix_server/wh_posix_server.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,10 @@ int main(int argc, char** argv)
391391
}
392392

393393
rc = wh_ServerTask(s_conf, keyFilePath, keyId, clientId);
394-
394+
if (rc != WH_ERROR_OK) {
395+
printf("Server task failed: %d\n", rc);
396+
return rc;
397+
}
395398
rc = wc_FreeRng(crypto->rng);
396399
if (rc != 0) {
397400
printf("Failed to wc_FreeRng: %d\n", rc);

0 commit comments

Comments
 (0)