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