From nobody Mon Jan 30 20:44:08 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P5Ksj0Xmgz3cVmd; Mon, 30 Jan 2023 20:44:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5Ksj05rQz3src; Mon, 30 Jan 2023 20:44:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675111449; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V/C0OxYk4h/KAKJxE+cB/fA9PqNfLK/GqfliK7CgEfk=; b=xD75DSotTS8ziGgjgaMaEA1NE/s+HWN9g1uBy1FT6MW6qHSDoiiIbWHzsIw/qL7mfvKt91 PelFw0MXl25fYgwG+pI06Rwia35Nlhh4TJIl/M+NziF/tAHk9LsyNM7lkWswIRhoZ8rB+S GJpW/NlT4mlr5SOkb3dJNR4E680gA9YQpY+asB74OsFjr92kRMgkoD2/qG+tq72wZsI9xM UbyTfBLy8VjEmpia1LHuyeEBNbtUCP01xNSFVoEChnVoGLZzSTYCcU8U8SQddu4WTq4iQB 9JKoDemrB3m1BUJFbpmQW2yvRo2asH85Ko/r99yohg6tkUO13u38a+r6kFoBjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675111449; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V/C0OxYk4h/KAKJxE+cB/fA9PqNfLK/GqfliK7CgEfk=; b=vW9qjCiHgMiRcWHjJrwqTPYkK4wcqpkGMKBtQFU2uIsM9UhK9OLorgQVnv7tp/Nn8fXXJE ICdepraDZNogvgtZwGC64zfYlhrRXik9Nm06baPINo4aPD2Yosok5PpfCzJT5zTg4hhh9n KDzxMHXJsFlkPUIyDlHNqwnPRxVlSPk0ie/T6JVVGU0nFsocfoi489sjCRvLyQHzeIgQH3 Cuci1R/nc5UCR+E2yivKZlwrcxgth/rH1eRZs+gIj3Gun0oJ4ZuKh8rGno7Y5WAoHhygxw dYvGPd/a0GVGwibiSX4UbgQPHxkKEyKP2iPOeaZhEI4lCJjBZH7z/SYtQpO4cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675111449; a=rsa-sha256; cv=none; b=NsdJAmc6v2XxAknCFnuaXIIXr4PeKW+ixpYcJFx4U7WJ6QaqQ4qCwIo3cN9CLuBh2hansZ olREzShJwMhi/2313y2//9M8sq7woRRcy8n8xph9ujj5Gon0J3hDlXSuB9nWZeJUIL4dZZ OTNy/avV5nJcsftYlVb69oUb1pPI/pQnIuj3Xoj7D3zAJZ6J1uYHDyAW2ySWuNHxRt9QIH sbzY4VycRgjbC4UQNQZC+p59Tocqx4HEEprzG+dtGY5bIjBOTsLA5YMcRiZ6Ve2rL3H7+0 rUckfHZksBNSmSeFUMEre3kJiNgTR3FnyaGaMNiZBr8mBL9kfFxJiWPtv3DREA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P5Ksh6HFvzN2f; Mon, 30 Jan 2023 20:44:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30UKi8EP030878; Mon, 30 Jan 2023 20:44:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30UKi82I030877; Mon, 30 Jan 2023 20:44:08 GMT (envelope-from git) Date: Mon, 30 Jan 2023 20:44:08 GMT Message-Id: <202301302044.30UKi82I030877@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Phil Shafer Subject: git: ef7d10fde4f6 - main - Add missing check for xo_parse_args return code. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: phil X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ef7d10fde4f650c7e9ef207af53d5f116b689826 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by phil: URL: https://cgit.FreeBSD.org/src/commit/?id=ef7d10fde4f650c7e9ef207af53d5f116b689826 commit ef7d10fde4f650c7e9ef207af53d5f116b689826 Author: Phil Shafer AuthorDate: 2023-01-30 20:43:01 +0000 Commit: Phil Shafer CommitDate: 2023-01-30 20:43:01 +0000 Add missing check for xo_parse_args return code. --- usr.bin/iscsictl/iscsictl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.bin/iscsictl/iscsictl.c b/usr.bin/iscsictl/iscsictl.c index 258b4f7c28ac..5b2a62874163 100644 --- a/usr.bin/iscsictl/iscsictl.c +++ b/usr.bin/iscsictl/iscsictl.c @@ -745,6 +745,9 @@ main(int argc, char **argv) struct target *targ; argc = xo_parse_args(argc, argv); + if (argc < 0) + exit(1); + xo_open_container("iscsictl"); while ((ch = getopt(argc, argv, "AMRLac:d:e:i:n:p:rt:u:s:vw:")) != -1) {