Michael Brown před 18 roky
rodič
revize
31f1bf4426
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      src/core/interface.c

+ 2
- 2
src/core/interface.c Zobrazit soubor

@@ -38,9 +38,9 @@
38 38
  * interface into a null interface.
39 39
  */
40 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 42
 	intf->dest = dest;
43
+	ref_get ( intf->dest->refcnt );
44 44
 }
45 45
 
46 46
 /**

Načítá se…
Zrušit
Uložit