This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new d8480c9 THRIFT-5101: Return NULL install of FALSE for
thrift_server_socket_accept() Client: c_glib Patch: wangyunjian
d8480c9 is described below
commit d8480c9ac14f133d272372530e33619b2a64ddf7
Author: wangyunjian <[email protected]>
AuthorDate: Sun Feb 16 08:43:03 2020 -0500
THRIFT-5101: Return NULL install of FALSE for thrift_server_socket_accept()
Client: c_glib
Patch: wangyunjian
This closes #2011
Signed-off-by: wangyunjian <[email protected]>
---
lib/c_glib/src/thrift/c_glib/transport/thrift_server_socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/c_glib/src/thrift/c_glib/transport/thrift_server_socket.c
b/lib/c_glib/src/thrift/c_glib/transport/thrift_server_socket.c
index 21ce1ee..92c6d7f 100644
--- a/lib/c_glib/src/thrift/c_glib/transport/thrift_server_socket.c
+++ b/lib/c_glib/src/thrift/c_glib/transport/thrift_server_socket.c
@@ -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);