summaryrefslogtreecommitdiff
path: root/omapip/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'omapip/protocol.c')
-rw-r--r--omapip/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omapip/protocol.c b/omapip/protocol.c
index 555207ef..bfdc5540 100644
--- a/omapip/protocol.c
+++ b/omapip/protocol.c
@@ -35,7 +35,7 @@ isc_result_t omapi_protocol_connect (omapi_object_t *h,
return ISC_R_NOMEMORY;
memset (obj, 0, sizeof *obj);
obj -> refcnt = 1;
- rc_register_mdl (obj, obj -> refcnt);
+ rc_register_mdl (&obj, obj, obj -> refcnt);
obj -> type = omapi_type_protocol;
status = omapi_connect ((omapi_object_t *)obj, server_name, port);