diff --git a/src/ssl.c b/src/ssl.c index 2e04c5141..25e148ac6 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -54963,7 +54963,7 @@ int wolfSSL_CONF_cmd(WOLFSSL_CONF_CTX* cctx, const char* cmd, const char* value) port = XSTRSTR(str, ":"); if (port != NULL) - bio->port = XATOI(port + 1); + bio->port = (word16)XATOI(port + 1); else port = str + XSTRLEN(str); /* point to null terminator */ @@ -54988,7 +54988,7 @@ int wolfSSL_CONF_cmd(WOLFSSL_CONF_CTX* cctx, const char* cmd, const char* value) WOLFSSL_ENTER("wolfSSL_BIO_new_accept"); bio = wolfSSL_BIO_new(wolfSSL_BIO_s_socket()); if (bio) { - bio->port = XATOI(port); + bio->port = (word16)XATOI(port); bio->type = WOLFSSL_BIO_SOCKET; } return bio;