Browse Source

D'oh

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
31f1bf4426
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/core/interface.c

+ 2
- 2
src/core/interface.c View File

38
  * interface into a null interface.
38
  * interface into a null interface.
39
  */
39
  */
40
 void plug ( struct interface *intf, struct interface *dest ) {
40
 void plug ( struct interface *intf, struct interface *dest ) {
41
-	ref_put ( intf->refcnt );
42
-	ref_get ( dest->refcnt );
41
+	ref_put ( intf->dest->refcnt );
43
 	intf->dest = dest;
42
 	intf->dest = dest;
43
+	ref_get ( intf->dest->refcnt );
44
 }
44
 }
45
 
45
 
46
 /**
46
 /**

Loading…
Cancel
Save