diff --git a/interfaces/kits/cj/src/webview_ffi.cpp b/interfaces/kits/cj/src/webview_ffi.cpp index d6375ccc047d1ccda98a103ae801ce717c3b2951..07c743a4393f8608f68b314181ad0416648531e9 100644 --- a/interfaces/kits/cj/src/webview_ffi.cpp +++ b/interfaces/kits/cj/src/webview_ffi.cpp @@ -1258,7 +1258,7 @@ extern "C" { int32_t FfiOHOSWebviewCtlSetHostIP(char* hostname, char* address, int32_t aliveTime) { - if (strlen(hostname) + 1 > UINT_MAX || strlen(hostname) + 1 > UINT_MAX || aliveTime <= 0) { + if (strlen(hostname) + 1 > UINT_MAX || strlen(address) + 1 > UINT_MAX || aliveTime <= 0) { return NWebError::PARAM_CHECK_ERROR; } unsigned char buf[sizeof(in6_addr)];