This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 79ba737a404d2833ad33d8f84ed6ce82c9a8c18e (commit) from a6ce9a4b1c70506a9d178d53b9c5daff92477d46 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 79ba737a404d2833ad33d8f84ed6ce82c9a8c18e Author: Bill Fischofer bill.fischofer@linaro.org Date: Wed Apr 12 14:41:14 2017 -0500
example: l3fwd: check rc from odph_eth_addr_parse()
Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2779 by checking the return code from odph_eth_addr_parse() and failing the call if dst_mac is unparseable.
Signed-off-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/example/l3fwd/odp_l3fwd_db.c b/example/l3fwd/odp_l3fwd_db.c index 082b2c27..0670aa45 100644 --- a/example/l3fwd/odp_l3fwd_db.c +++ b/example/l3fwd/odp_l3fwd_db.c @@ -394,7 +394,10 @@ int create_fwd_db_entry(char *input, char **oif, uint8_t **dst_mac) *oif = entry->oif; break; case 2: - odph_eth_addr_parse(&entry->dst_mac, token); + if (odph_eth_addr_parse(&entry->dst_mac, token) < 0) { + free(local); + return -1; + } *dst_mac = entry->dst_mac.addr; break;
-----------------------------------------------------------------------
Summary of changes: example/l3fwd/odp_l3fwd_db.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
hooks/post-receive