set comm_type to default correctly

support_rdma
YuQing 2023-11-15 16:40:56 +08:00
parent 1c1ea296e7
commit 6a5d4b1402
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ static inline int fc_server_set_comm_type(FCCommunicationType *comm_type,
const char *comm_type_str, const FCCommunicationType default_comm_type)
{
if (comm_type_str == NULL) {
*comm_type = fc_comm_type_sock;
*comm_type = default_comm_type;
return 0;
} else if (strcasecmp(comm_type_str, "socket") == 0) {
*comm_type = fc_comm_type_sock;