From owner-cvs-src@FreeBSD.ORG Sat Jun 16 00:15:15 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 948E016A468; Sat, 16 Jun 2007 00:15:15 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 6D54613C457; Sat, 16 Jun 2007 00:15:15 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l5G0FFDi057506; Sat, 16 Jun 2007 00:15:15 GMT (envelope-from bz@repoman.freebsd.org) Received: (from bz@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l5G0FFR1057501; Sat, 16 Jun 2007 00:15:15 GMT (envelope-from bz) Message-Id: <200706160015.l5G0FFR1057501@repoman.freebsd.org> From: "Bjoern A. Zeeb" Date: Sat, 16 Jun 2007 00:15:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netipsec key.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 00:15:15 -0000 bz 2007-06-16 00:15:15 UTC FreeBSD src repository Modified files: sys/netipsec key.c Log: In case of failure we can directly return ENOBUFS because 'result' is still NULL and we do not need to free anything. That allows us to gc the entire goto parts and a now unused variable. Found with: Coverity Prevent(tm) CID: 2519 Revision Changes Path 1.26 +3 -10 src/sys/netipsec/key.c