ipc: fix duplicate string copy in async request
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 3 May 2018 10:35:26 +0000 (11:35 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 May 2018 01:19:57 +0000 (03:19 +0200)
Coverity issue: 272582
Fixes: 2147c0950580 ("ipc: clean up code")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/librte_eal/common/eal_common_proc.c

index 611aba2..707d8ab 100644 (file)
@@ -870,7 +870,6 @@ mp_request_async(const char *dst, struct rte_mp_msg *req,
 
        pending_req->type = REQUEST_TYPE_ASYNC;
        strlcpy(pending_req->dst, dst, sizeof(pending_req->dst));
-       strcpy(pending_req->dst, dst);
        pending_req->request = req;
        pending_req->reply = reply_msg;
        pending_req->async.param = param;