All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] examples/l2fwd-crypto: fix uninitialized errno value
@ 2017-08-23 12:24 Hemant Agrawal
  2017-08-23 12:24 ` [PATCH] app/crypto-perf: " Hemant Agrawal
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Hemant Agrawal @ 2017-08-23 12:24 UTC (permalink / raw)
  To: dev; +Cc: declan.doherty, pablo.de.lara.guarch, akhil.goyal

errno should be initialized to 0 before calling strtol

Fixes: 1df9c0109f4c ("examples/l2fwd-crypto: parse key parameters")
Cc: stable@dpdk.org

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.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 f020be3..17673a3 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -1088,6 +1088,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.7.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-09-05 11:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 12:24 [PATCH] examples/l2fwd-crypto: fix uninitialized errno value Hemant Agrawal
2017-08-23 12:24 ` [PATCH] app/crypto-perf: " Hemant Agrawal
2017-09-04 14:54   ` Rybalchenko, Kirill
2017-09-04 14:56   ` De Lara Guarch, Pablo
2017-09-05  6:03     ` Hemant Agrawal
2017-09-05  6:17   ` [PATCH v2] " Hemant Agrawal
2017-09-05 11:25     ` De Lara Guarch, Pablo
2017-09-04 14:53 ` [PATCH] examples/l2fwd-crypto: " De Lara Guarch, Pablo
2017-09-04 14:53 ` Rybalchenko, Kirill
2017-09-05 11:25 ` De Lara Guarch, Pablo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.