Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp733586rwb; Fri, 23 Sep 2022 03:29:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7CjOQ8fvxCwfdbZBka2ipAepbJvO85g5JtGIp85RNkRxTWedL43Ytskkm9ifOApcjAyd9d X-Received: by 2002:a17:902:d4c6:b0:177:ff9b:35d0 with SMTP id o6-20020a170902d4c600b00177ff9b35d0mr7852915plg.69.1663928970453; Fri, 23 Sep 2022 03:29:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663928970; cv=pass; d=google.com; s=arc-20160816; b=uh3WIaPFTpH0Yv18rv6RNp5IiDQ1COEgOcLJjBfAgpeM/Gk/GtmkoD89UdczZDhyj8 ApWH5eyxh7opCCT4zIrfYC5IUhuFGgT2r+eq83la2OZxhDHxYmS2hid5biSdX0+oV6UE /7WyH/HZSQs18wViyU19sv30kSEmVT1s7I3+e4Z9fespOVn9u7EOj+761cleG16i7xhH XlPijMDn1O7oY7PI6BthHubhVvIof7oXpqVAm/K7qGOr3wbPytXtQTsD1P6TxGRwFxqL l+nFS3UEqFy2Qy3P+XlMEmQE4Knl1XnXEpSqrcUDAbk/jXxDNB11zc0xv5eM2jhK6sGd uKwg== 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=uCZdsTWeRRKnKvIa+qLJf2jvFYpiJ0yOVbzZte9XwJc0vvg+L3s0cNYrrEcxyDq1gC Lly35dEXoNhAYs/F3NLZaowUpSMCoINQjvDKZKIRrHy3fL9mkdDTHGQPaYbzc9dmfDBg nUdiJc+72O2NRF+YMHznJhhKLW1kDg63ZwzK/5pBbyObF4EtMOiJHIUX/S2K7ewbgQWm zA5zpoE0iZBI4+R63vIBr9AKcZoEdFdzIeRP+eCOikwZIL3LLzRfgcHgqDAhvNODDAhC ZBjDz3fjEZFrAc4xUMtKWTyogqk7LF3KA/1JIlCWW/0QEatHw8WJmbU5GIwapUuor4bW Mang== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arrigroup.onmicrosoft.com header.s=selector1-arrigroup-onmicrosoft-com header.b=xG5JkPJd; 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 k10-20020a635a4a000000b0043ad5d9348esi9289600pgm.164.2022.09.23.03.29.18; Fri, 23 Sep 2022 03:29:30 -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=xG5JkPJd; 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 S229622AbiIWK1G (ORCPT + 99 others); Fri, 23 Sep 2022 06:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbiIWK0n (ORCPT ); Fri, 23 Sep 2022 06:26:43 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2135.outbound.protection.outlook.com [40.107.22.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E599E12B5FC for ; Fri, 23 Sep 2022 03:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m/uSEvzU0ec984lS8ppYDnm+/mtVzXY8qTSepfT9zHtHEdIZceKZhF8EOrbdgxXXfjGYs8cuY/a3LJXUJ65x59OmtoX7NdG7mWX8tk7l5cKMIXlfyiFTFAhT5cn5DKW2crmfkDq+9u1JZs/Z+/eEo2Jwu6rulLCijS2wcIqee8SD3QasNEZKTIbHddwqD8ZYgeecofyi31Pn5DoZXVmBJbF+k5UeBliizL9ArZZ3ryAwSyVUDBqvDQMUjTxQqHkILVvELOLkyYFlD6C1uo+vZhSFDObSw+5/84MCggg3eQ2BuWk5WP+lMnqSIKXRJZ2OZmrJTVDtUf1jfbJui3T4+g== 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=b+BQVIUpc9cs/PFqXohnPZru8mTpbwsOxySOpyauJMGoyj3hn/bDX0yP2WnpI74+n04BNWaZreg8TfgzE1XVYnkQtAPhN6m9Ohviqze1tiOgSaEvnTDPM4aiBJjqI216Fp/gsZLt/slN32FruVcRf5TIrOhZ0IA/ePXx/p5pf9IXwZElK9bjneeFuvCw1FOHO0Wsfa/Z/2KchEYdN17OUHQNuAVche8UA5GJI/j3iZRKxx1aSedB37aY7rCn9ft3f+OsBF6sOfppAmjFl82+mNQYSOI7eBpZHD/sz2sFkXfrJDK94/T30ZjUQdgvfELoPDXcCR97NBMKydliGfDYkQ== 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=xG5JkPJd/XymP1Wbueuc+ngEqrHVP8NpIFM0Vkb0UG5NbfX8+KY/NZo/6gSWL2ay2YwF26YsVyTxZKFv2A31kiTK1WPPG1ehODg/p4Xzb3F7Sa9YRYs2vrrG07pz9oOnAVL9fj8I7fxSa6em2I6u2/dMe27U0zM5zURLiQcVgXo= Received: from AS8PR07CA0056.eurprd07.prod.outlook.com (2603:10a6:20b:459::25) by AS8PR07MB7669.eurprd07.prod.outlook.com (2603:10a6:20b:2a9::17) 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 10:26:40 +0000 Received: from AM5EUR02FT086.eop-EUR02.prod.protection.outlook.com (2603:10a6:20b:459:cafe::77) by AS8PR07CA0056.outlook.office365.com (2603:10a6:20b:459::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.9 via Frontend Transport; Fri, 23 Sep 2022 10:26:40 +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 AM5EUR02FT086.mail.protection.outlook.com (10.152.9.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5654.19 via Frontend Transport; Fri, 23 Sep 2022 10:26:39 +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 12:26:38 +0200 From: Christian Eggers To: CC: Christian Eggers Subject: [PATCH BlueZ 5/9] advertising: parse_[min|max]_interval: reset value if iter is NULL Date: Fri, 23 Sep 2022 12:26:32 +0200 Message-ID: <20220923102632.10502-1-ceggers@arri.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220923102421.10336-1-ceggers@arri.de> References: <20220923102421.10336-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: AM5EUR02FT086:EE_|AS8PR07MB7669:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c38812c-0930-40b0-85c8-08da9d4e1a15 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +jX8/Xp9C77PAgvbVVCThDQWnsvaJB1xg8JNHrFaX0tnvTo0TR7RA2XRGEWu4tJAblanRyQf+BVFEisNZH+DHxy5ADLPs2RxIrhVzTxm+GcCfy1F5Iwo1NpoxNZ5J9tfnyLAMzX8YkVcNQ3fmJsz33L30h67bG0KKo5P0KK6UUzRikP/azQAxkgNwmCYTU6aEtFnDMa95U4bL4kkRM8shWDPVls+8UMDMlQrXAWS1+T1P5Au9tJm43hIzdafe7/4dcbj5iX2m64MrqttARpKuKJNOii6NouW8h86HiSdjdfZVRKOFRqKnxTFDPd12e76wlpPs3AX3/zJ/aZK6AbkFekFVyj0/YTd8dV9jrbFmdzK+FE6m5LYk5OJy1/DdSo0g2Kul4ic7WH51TQ9Rhxj1ozIedzzVPuIUHQkcDLcQ7KcnioNjMTAtfH4RX8KLRR4LNYYUtJni2v9TZqr04qRuF69pahIr3KjJ7PpbchIdnaueVzVP2q11Vjf88Y7HbahDY/4GJ0ooRz4hya2HRnQILp5//qeS5/gOphrqtZSUvPintrjbUvalOVENF8Aq7xnNRyF5da7RgeF0M4D8UP/F7cP+XwLbXC2IvBOa/Tm6FZ6agQzPmfxWN2GrAhPZm94pxEY/Vxq9uW1w77XAPZHKUB69KnGaNmdFjcHTciPoQJ5hH5/zvjT3buUXz++v6YyJUDVnY1vuPbRu8HxwH6oY8AT4eBnuKe7DhDEpB0E2Py3lz7MgMTglcjmZI+B4Khn+HPh9+wvc2NaMTbM3wxjOp0BOQrgpmheNXfH825E9pOzDqKoFbsjEczSZvozz87n 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)(376002)(396003)(136003)(346002)(39860400002)(451199015)(36840700001)(46966006)(316002)(26005)(5660300002)(4744005)(2906002)(7696005)(70206006)(82310400005)(8676002)(107886003)(41300700001)(36756003)(6666004)(8936002)(4326008)(70586007)(40480700001)(83380400001)(186003)(426003)(336012)(6916009)(16526019)(86362001)(47076005)(2616005)(478600001)(36860700001)(82740400003)(1076003)(81166007)(356005)(36900700001);DIR:OUT;SFP:1102; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2022 10:26:39.6505 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c38812c-0930-40b0-85c8-08da9d4e1a15 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: AM5EUR02FT086.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7669 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_PASS,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