Ver código fonte

D'oh

tags/v0.9.3
Michael Brown 18 anos atrás
pai
commit
31f1bf4426
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/core/interface.c

+ 2
- 2
src/core/interface.c Ver arquivo

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

Carregando…
Cancelar
Salvar