[dpdk-stable] patch 'examples/l2fwd-crypto: fix uninitialized errno value' has been queued to LTS release 16.11.4
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Oct 30 16:34:59 CET 2017
Hi,
FYI, your patch has been queued to LTS release 16.11.4
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/01/17. So please
shout if anyone has objections.
Thanks.
Kind regards,
Luca Boccassi
---
>From 061930daed84e2b093d0c1b858e894ce5f0d907f Mon Sep 17 00:00:00 2001
From: Hemant Agrawal <hemant.agrawal at nxp.com>
Date: Wed, 23 Aug 2017 17:54:03 +0530
Subject: [PATCH] examples/l2fwd-crypto: fix uninitialized errno value
[ upstream commit 455446276493a68117f738b2b778f2791751a2a7 ]
errno should be initialized to 0 before calling strtol
Fixes: 1df9c0109f4c ("examples/l2fwd-crypto: parse key parameters")
Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
Reviewed-by: Kirill Rybalchenko <kirill.rybalchenko at intel.com>
---
examples/l2fwd-crypto/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
index b40c49c3d..3e99b48f1 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -987,6 +987,7 @@ parse_key(uint8_t *data, char *input_arg)
unsigned byte_count;
char *token;
+ errno = 0;
for (byte_count = 0, token = strtok(input_arg, ":");
(byte_count < MAX_KEY_SIZE) && (token != NULL);
token = strtok(NULL, ":")) {
--
2.11.0
More information about the stable
mailing list