From owner-svn-src-all@FreeBSD.ORG Wed Dec 25 09:43:52 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07DD4F4; Wed, 25 Dec 2013 09:43:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E76D815D0; Wed, 25 Dec 2013 09:43:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBP9hpbu054963; Wed, 25 Dec 2013 09:43:51 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBP9hpjs054962; Wed, 25 Dec 2013 09:43:51 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201312250943.rBP9hpjs054962@svn.freebsd.org> From: Gleb Smirnoff Date: Wed, 25 Dec 2013 09:43:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259865 - head/sys/netinet/libalias X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2013 09:43:52 -0000 Author: glebius Date: Wed Dec 25 09:43:51 2013 New Revision: 259865 URL: http://svnweb.freebsd.org/changeset/base/259865 Log: It'll be okay to use LibAliasDetachHandlers() here, relying on the fact that all handlers come from modules' bss and are followed by NODIR handler. Modified: head/sys/netinet/libalias/alias.c Modified: head/sys/netinet/libalias/alias.c ============================================================================== --- head/sys/netinet/libalias/alias.c Wed Dec 25 08:34:35 2013 (r259864) +++ head/sys/netinet/libalias/alias.c Wed Dec 25 09:43:51 2013 (r259865) @@ -1722,7 +1722,7 @@ LibAliasUnLoadAllModule(void) /* Unload all modules then reload everything. */ while ((p = first_handler()) != NULL) { - detach_handler(p); + LibAliasDetachHandlers(p); } while ((t = walk_dll_chain()) != NULL) { dlclose(t->handle);