From: Michael Brown Date: Mon, 30 Apr 2007 01:24:52 +0000 (+0000) Subject: D'oh X-Git-Tag: v0.9.3~425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31f1bf4426cebc138aef9770bd56839451fabd0d;p=thirdparty%2Fipxe.git D'oh --- diff --git a/src/core/interface.c b/src/core/interface.c index 0f4cd55f8..4c420fda7 100644 --- a/src/core/interface.c +++ b/src/core/interface.c @@ -38,9 +38,9 @@ * interface into a null interface. */ void plug ( struct interface *intf, struct interface *dest ) { - ref_put ( intf->refcnt ); - ref_get ( dest->refcnt ); + ref_put ( intf->dest->refcnt ); intf->dest = dest; + ref_get ( intf->dest->refcnt ); } /**