From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 2AC65A05D3 for ; Wed, 27 Mar 2019 14:20:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DAAE65688; Wed, 27 Mar 2019 14:20:06 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id A7E054CC5 for ; Wed, 27 Mar 2019 14:20:04 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2019 06:20:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,277,1549958400"; d="scan'208";a="310832082" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by orsmga005.jf.intel.com with ESMTP; 27 Mar 2019 06:20:00 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.210]) by IRSMSX108.ger.corp.intel.com ([169.254.11.7]) with mapi id 14.03.0415.000; Wed, 27 Mar 2019 13:19:59 +0000 From: "Ananyev, Konstantin" To: Akhil Goyal , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 2/3] examples/ipsec_secgw: fix possible NULL dereference Thread-Index: AQHU5IA2jBoft7fbO0yyvEql8glkR6Yfb5GAgAAGLyA= Date: Wed, 27 Mar 2019 13:19:58 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772580136560AC0@irsmsx105.ger.corp.intel.com> References: <20190327093329.12521-1-konstantin.ananyev@intel.com> <20190327093329.12521-3-konstantin.ananyev@intel.com> In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWNmMmViZGMtNzVjYS00Y2MxLTgyMmYtM2ExYjY5OTgyMWFjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTmhReFBveWNYNWhSQTRWUDc4RFJJYmpmOHpKZDRuK29jMmF4dEoya3o0SENYXC9nXC8relJcLzJyd3ZvaWV1VFVkVSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 2/3] examples/ipsec_secgw: fix possible NULL dereference X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190327131958.TQJlWCuoHQ-c4jEdqg9DEzk8UXIWy03VF5JJ53wViTc@z> SGkgQWtoaWwsDQoNCj4gPiBGaXhlczogM2U1ZjQ2MjVkYzE3ICgiZXhhbXBsZXMvaXBzZWMtc2Vj Z3c6IG1ha2UgZGF0YS1wYXRoIHRvIHVzZSBJUHNlYyBsaWJyYXJ5IikNCj4gPiBDb3Zlcml0eSBp c3N1ZTogMzM2ODQ0DQo+ID4NCj4gPiBTaWduZWQtb2ZmLWJ5OiBLb25zdGFudGluIEFuYW55ZXYg PGtvbnN0YW50aW4uYW5hbnlldkBpbnRlbC5jb20+DQo+ID4gLS0tDQo+ID4gICBleGFtcGx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