This is an automated email from the ASF dual-hosted git repository.

jking 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 d77e097  fix minor glib warning
d77e097 is described below

commit d77e0977260fa8d82d56836ed07cdca0f23cadcb
Author: James E. King III <jk...@apache.org>
AuthorDate: Fri Feb 1 19:17:59 2019 -0500

    fix minor glib warning
---
 lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c 
b/lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c
index 6dd0f0d..560c24e 100644
--- a/lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c
+++ b/lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c
@@ -163,7 +163,7 @@ thrift_socket_open (ThriftTransport *transport, GError 
**error)
   /* open a connection */
   if (connect (tsocket->sd, (struct sockaddr *) &pin, sizeof(pin)) == -1)
   {
-      thrift_socket_close(tsocket, NULL);
+      thrift_socket_close(transport, NULL);
       g_set_error (error, THRIFT_TRANSPORT_ERROR, 
THRIFT_TRANSPORT_ERROR_CONNECT,
                  "failed to connect to host %s:%d - %s",
                  tsocket->hostname, tsocket->port, strerror(errno));

Reply via email to