summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-transport.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-08-11 05:58:31 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-12 00:14:27 -0700
commitd8bb87b4c7dd40adf4fe0ba0a0946483599e0acc (patch)
treefa12f319b8eececf9852a6f9e9e87206c016b214 /rpc/rpc-lib/src/rpc-transport.h
parentfe38de53620d2c8c9dd1050a377f05a315f125d8 (diff)
rpc fixes
* set THIS properly so memory accounting works fine. * also check for few pointers before dereferencing them. Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1317 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1317
Diffstat (limited to 'rpc/rpc-lib/src/rpc-transport.h')
-rw-r--r--rpc/rpc-lib/src/rpc-transport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpc-transport.h b/rpc/rpc-lib/src/rpc-transport.h
index f6576fc1384..14ec8bc5719 100644
--- a/rpc/rpc-lib/src/rpc-transport.h
+++ b/rpc/rpc-lib/src/rpc-transport.h
@@ -170,6 +170,7 @@ struct rpc_transport {
struct rpc_transport_ops *ops;
void *private;
void *xl_private;
+ void *xl; /* Used for THIS */
void *mydata;
pthread_mutex_t lock;
int32_t refcount;