Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1085923rwb; Fri, 23 Sep 2022 08:04:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5R3k5LDtI3/6sfLu5JuqmmkS6aktbczVMy1xbWILP9GXC8B7Q42ggZn9PHd5o1E3Ky7p8v X-Received: by 2002:a17:907:3201:b0:741:94f2:aeaf with SMTP id xg1-20020a170907320100b0074194f2aeafmr7376086ejb.505.1663945451990; Fri, 23 Sep 2022 08:04:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663945451; cv=pass; d=google.com; s=arc-20160816; b=pPgWCo9dRCUjTJpokukBG4TYZBNxFtnLS+r5JPvfcpIGOfVQExrWR7gSWbqUuG1RP9 ocf00uM4bNM2FH3SQ9ESf14i3WBqs8JsFHzmpiafUy4mCnZ00nPh5lLLnOLhaX63NxrI U4/b23gjsQVadXhjWCuTuKqB3T5pFv1C878mb0sL5/01xVidqneBEAMRjMAFUTQJzyLe rRmZzPCpbg2sx+XZAxFAGEg1Au91RydYXm/egxN+BEAh1hvvkoLIYP+Sb0NBih2tDlGA CpdzXJkHMRknGBw9/+cRtRZxAJ9VB2ov62xHdtQSnef1++AzNNXVbW3fvTZ1fExEhpxe ZYpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=20GxCM1TBI8yh9oi30c2x/QL5EPjeVyvmbAQDgsqlyY=; b=QEt+yTrsqO0yZ3AC7hUXDEgSTXT7cbqJ/LspIRdG6aAHQ+3jaDkNQpes6BxDW1wTYf HvOvs/IGnoztLuJuI/F713yT3sJCHb40djr9UGPCZP7boyD1SnVYtvtFGNQjnmzgsneu PJLyKWLyh02+B8AeeSiw5FjLatFw0lh9Hf0gnLGu1m64uCK0A3TL9mqmHTlEeGbTEGIo GhyL/wd7Tl7IAwOfp97R4Xt7GnMsCYkeAyar3gIq2gKF3fGbW9SPViPv/zLtgz11DGN/ hpomDKa1JK0VEyrcooFz3+sdIcrb8UluTgLAxsSGLSlIXdv1rsA6G9VCQ8ZgiuoWEkDW BqBA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arrigroup.onmicrosoft.com header.s=selector1-arrigroup-onmicrosoft-com header.b=gUIzP9In; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he40-20020a1709073da800b00782befcd0e4si1145488ejc.29.2022.09.23.08.03.45; Fri, 23 Sep 2022 08:04:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arrigroup.onmicrosoft.com header.s=selector1-arrigroup-onmicrosoft-com header.b=gUIzP9In; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbiIWO5p (ORCPT + 99 others); Fri, 23 Sep 2022 10:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbiIWO5o (ORCPT ); Fri, 23 Sep 2022 10:57:44 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2106.outbound.protection.outlook.com [40.107.104.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBB43115F4F for ; Fri, 23 Sep 2022 07:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S23VdAeEw8JAWNYY3xOzrdP+dM77fI9ZoZbfCD9A7PikM2jgQP9IT3dRMJap/3FP2MJQMoiyIVP6rxIPTw/bAm/WgOm60j3v+V0buPYScEQBzsTO9i2i2gpa4UsKnLJvmWhdQ+xYgQp3+yGwrUBR9gMshjWHNhBeBL6+3KhuE1qnUtNkDpI2l1M07xSvEWzoev0yTjjtGxFKOu9Osg8kDpM/WvN4QWEcZhf7Ie6yzUOc1JZGDz0gSxEOCKUao4tQZ9UV/DGWhnywwWk1R9t0m/dhdHhwmlBRJiR6Jdi9LtfEVZGcAuECa3ofs5A5H3kF3MQZdRpqU9/rKLfcukg00Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=20GxCM1TBI8yh9oi30c2x/QL5EPjeVyvmbAQDgsqlyY=; b=KJg6FkVBN+br3+vrzGs9gIW4TreZi7PTE7Y2I9SxyEcymz6TJ//uDy628VeZ8R+wsvSgzNpwMPUWnXy1yXIrylHLJOW4cWsutBJl9jetaYYXrYy13xrl1tFLc2OggESNdawZxVaP/8uPGBtzTlcY+l94IWeYk87Wtx4sC7L7jhtNylQBg/jVFIs+Y80A7zKyuKifBAKy4TDqnDF1RAyFjgkh5OBKLFH/nmA7L+Wrv83eR9Q0GwhZj/9wH9m8ydPkqjqyFhWS4KA8O12Dvb0cb6si44yDRt9dWCPeT/N5FhNJaIw500xf6fd+U0Ma+fUnBau7qOYPYyqSlwnkdAFftg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 217.111.95.7) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=arri.de; dmarc=none action=none header.from=arri.de; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arrigroup.onmicrosoft.com; s=selector1-arrigroup-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=20GxCM1TBI8yh9oi30c2x/QL5EPjeVyvmbAQDgsqlyY=; b=gUIzP9InQlFup1XES9wBw35lnEhvv7IbZRkKIvNjvzaAXoB1gEGCFdSyIc4VWZA4b9zFXDkvzaqUzFhokiCaB1vW8gS3s4IbUXwwoJ8+CoxwHsfB2jxB0+zSc5Go5+zYMBufp2jxIq0tp4wLvzAEQQAzpku+LaoIQi3mTxCHmpk= Received: from FR3P281CA0095.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a1::7) by PA4PR07MB8392.eurprd07.prod.outlook.com (2603:10a6:102:2a3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.9; Fri, 23 Sep 2022 14:57:41 +0000 Received: from VE1EUR02FT101.eop-EUR02.prod.protection.outlook.com (2603:10a6:d10:a1:cafe::c2) by FR3P281CA0095.outlook.office365.com (2603:10a6:d10:a1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16 via Frontend Transport; Fri, 23 Sep 2022 14:57:41 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 217.111.95.7) smtp.mailfrom=arri.de; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arri.de; Received-SPF: Fail (protection.outlook.com: domain of arri.de does not designate 217.111.95.7 as permitted sender) receiver=protection.outlook.com; client-ip=217.111.95.7; helo=mta.arri.de; Received: from mta.arri.de (217.111.95.7) by VE1EUR02FT101.mail.protection.outlook.com (10.152.13.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5654.14 via Frontend Transport; Fri, 23 Sep 2022 14:57:41 +0000 Received: from N95HX1G2.arri.de (192.168.54.71) by mta.arri.de (10.10.18.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 23 Sep 2022 16:57:40 +0200 From: Christian Eggers To: CC: Christian Eggers Subject: [PATCH BlueZ v2 5/9] advertising: parse_[min|max]_interval: reset value if iter is NULL Date: Fri, 23 Sep 2022 16:57:31 +0200 Message-ID: <20220923145731.26014-1-ceggers@arri.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220923145602.25872-1-ceggers@arri.de> References: <20220923145602.25872-1-ceggers@arri.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [192.168.54.71] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1EUR02FT101:EE_|PA4PR07MB8392:EE_ X-MS-Office365-Filtering-Correlation-Id: 8c7c8717-5f1d-45fe-52d5-08da9d73f6cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Zwh/MVZNDzKENhxy8w/JWda29ugfk246A/go5RNSXXO2otadcnCXGg9AsT+wcG8mt2X3VritIu/p/L1Yx9PFcpTU1vd1lgEq01qntFDUmNlYyLw8KQtHk1nd7vjX2JEDhBGjZ/Qlouv1uH7VE4KH/UMFas4lMzhuHPjnvfLUXkiLiLdyesuIgPA4OaLqzr5lp+eOym23ThYzMzkn5sh025hdZWsuCIKryloUJzkC7udvz2KP0IaFul72lQ6s5wxil9sEgypP6eMCfAPnECWMhHI3Ff6FSWAOx0B+c/QiDhOC7jhftS9CGyHauZa+UAIfwEb44Agh3oK01qf5/WbTSl4S/51Gvc8Q9F007zR1j4+wKlB6suX3hPlan2FeNXUX/eBvKCQ6GMxk0guvAlW0kNqzveSGMYuMEmjsgBKs8P8zAsDDavLGs0gy4F4O6yoQq4iHxhyDNr3YePp2GoZyKqCBWAO6IQ01x0FKaeLzUi393/fhXuePZnHenIcNo4unwRswXqMwwBn8TF0cGhygcHs+JQs5IT/0n8gyx4oiekT6G7YS5k+yC7Z0JTk12iqumwMRub572J1GGj/n8As7Nl9gh6w9Lj013U3Jg5F7OYpFi5yM2EoGEcy/q/+nGpBMHyRhQWNfnQ+Jv8q2Hfo9yU4u56x0GHB9yTbOwUOtL51GdnEgA5E9O0dH7PtCaTm8QMZl8z3UWUGWdpdqeRHi0HZ3TkYsIZCGvxPnNa7Ga9OIZTc8RASeptAgEqvxtW4lF8TNaaqsSR43RdHDpQtrQVfOOZjDJYabwm6JJNSHcx7iEhoU6nHwxgD6F1CmdWuO X-Forefront-Antispam-Report: CIP:217.111.95.7;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mta.arri.de;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(136003)(396003)(376002)(39860400002)(346002)(451199015)(46966006)(36840700001)(83380400001)(36860700001)(7696005)(6916009)(426003)(5660300002)(47076005)(82740400003)(186003)(82310400005)(16526019)(356005)(316002)(1076003)(81166007)(336012)(70586007)(2906002)(41300700001)(26005)(2616005)(107886003)(6666004)(8676002)(4326008)(4744005)(8936002)(36756003)(478600001)(70206006)(40480700001)(86362001)(36900700001);DIR:OUT;SFP:1102; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2022 14:57:41.3328 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8c7c8717-5f1d-45fe-52d5-08da9d73f6cd X-MS-Exchange-CrossTenant-Id: e6a73a5a-614d-4c51-b3e3-53b660a9433a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e6a73a5a-614d-4c51-b3e3-53b660a9433a;Ip=[217.111.95.7];Helo=[mta.arri.de] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR02FT101.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR07MB8392 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Set property to its default value (as done in all other methods listed in parsers[]). --- src/advertising.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/advertising.c b/src/advertising.c index fbfd90b4e300..25df2297b3c1 100644 --- a/src/advertising.c +++ b/src/advertising.c @@ -1120,8 +1120,10 @@ static bool parse_max_interval(DBusMessageIter *iter, if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL)) return true; - if (!iter) + if (!iter) { + client->max_interval = 0; return false; + } if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_UINT32) return false; -- 2.35.3