diff --git a/entry/src/tfe_mgr.cpp b/entry/src/tfe_mgr.cpp index 3ba3287..2fa46bb 100644 --- a/entry/src/tfe_mgr.cpp +++ b/entry/src/tfe_mgr.cpp @@ -159,9 +159,9 @@ static void* thread_tfe_keepalive_accept(void *args){ char client_ipaddr_str[INET_ADDRSTRLEN] = ""; int flags, ret, client_fd; pthread_t thread_id = -1; - int tfe_id = -1; char *errmsg = NULL; while(true){ + int tfe_id = -1; client_fd = accept(sockfd, (struct sockaddr *)&client_addr, &client_addr_len); if(client_fd < 0){ KNI_LOG_ERROR(logger, "Failed at accept, errno is %d, errmsg is %s, tfe_id is %d", errno, strerror(errno), tfe_id);