summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/interface.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/interface.c b/src/core/interface.c
index 4c420fda7..f9345de6f 100644
--- a/src/core/interface.c
+++ b/src/core/interface.c
@@ -38,9 +38,8 @@
* interface into a null interface.
*/
void plug ( struct interface *intf, struct interface *dest ) {
- ref_put ( intf->dest->refcnt );
- intf->dest = dest;
- ref_get ( intf->dest->refcnt );
+ intf_put ( intf->dest );
+ intf->dest = intf_get ( dest );
}
/**