THRIFT-5101: Return NULL install of FALSE for thrift_server_socket_accept()

Client: c_glib
Patch: wangyunjian

This closes #2011

Signed-off-by: wangyunjian <wangyunjian@huawei.com>
This commit is contained in:
wangyunjian 2020-02-16 08:43:03 -05:00 committed by Jens Geyer
parent 7b712f42d7
commit d8480c9ac1

View File

@ -148,7 +148,7 @@ thrift_server_socket_accept (ThriftServerTransport *transport, GError **error)
THRIFT_SERVER_SOCKET_ERROR_ACCEPT,
"failed to accept connection - %s",
strerror(errno));
return FALSE;
return NULL;
}
socket = g_object_new (THRIFT_TYPE_SOCKET, NULL);