修正sockfd没有初始化的问题

This commit is contained in:
root
2019-07-31 15:06:17 +00:00
parent ca976fea48
commit 6d41e073d9

View File

@@ -1460,7 +1460,7 @@ static void* thread_tfe_cmsg_receiver(void *args){
uint32_t listen_ip;
int listen_port = -1;
char buff[KNI_MTU];
int sockfd;
int sockfd = 0;
struct sockaddr_in server_addr, client_addr;
int ret = MESA_load_profile_string_nodef(profile, section, "listen_eth", listen_eth, sizeof(listen_eth));
if(ret < 0){