소스 검색

D'oh

tags/v0.9.3
Michael Brown 18 년 전
부모
커밋
31f1bf4426
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/core/interface.c

+ 2
- 2
src/core/interface.c 파일 보기

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

Loading…
취소
저장