update core/authentication/src/auth_tcp_connection.c.

Signed-off-by: ym <yuanmeng36@huawei.com>
This commit is contained in:
ym 2024-11-20 02:39:10 +00:00 committed by Gitee
parent 1393e8060a
commit 86c257c9b5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -547,7 +547,7 @@ int32_t SocketPostBytes(int32_t fd, const AuthDataHead *head, const uint8_t *dat
SoftBusFree(buf);
if (ret != (ssize_t)size) {
AUTH_LOGE(AUTH_CONN, "fail. ret=%{public}zd", ret);
return SOFTBUS_AUTH_SEND_FAIL;
return SOFTBUS_TCP_SOCKET_ERR;
}
return SOFTBUS_OK;
}