Add an assert to track if we try to use an rpc_context after it has been destroyed
[deb_libnfs.git] / include / libnfs-private.h
index a083b37031100b82fafea1d85b2267ebcb8b18a9..e32a70631f4a9e45dbfb7246edd7aa5029d27105 100644 (file)
@@ -23,7 +23,10 @@ struct rpc_fragment {
        char *data;
 };
 
+#define RPC_CONTEXT_MAGIC 0xc6e46435
+
 struct rpc_context {
+        uint32_t magic;
        int fd;
        int is_connected;