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, 4 insertions, 1 deletions
diff --git a/src/core/interface.c b/src/core/interface.c
index 948fa5c5..faaa931f 100644
--- a/src/core/interface.c
+++ b/src/core/interface.c
@@ -113,7 +113,10 @@ void intf_plug_plug ( struct interface *a, struct interface *b ) {
* @v intf Object interface
*/
void intf_unplug ( struct interface *intf ) {
- intf_plug ( intf, &null_intf );
+ DBGC ( INTF_COL ( intf ), "INTF " INTF_INTF_FMT " unplug\n",
+ INTF_INTF_DBG ( intf, intf->dest ) );
+ intf_put ( intf->dest );
+ intf->dest = &null_intf;
}
/**