Parcourir la source

D'oh

tags/v0.9.3
Michael Brown il y a 19 ans
Parent
révision
31f1bf4426
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      src/core/interface.c

+ 2
- 2
src/core/interface.c Voir le fichier

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
 /**

Chargement…
Annuler
Enregistrer