wireguard: fix passing argument 71/35071/2 v22.02-rc2
authorGabriel Oginski <gabrielx.oginski@intel.com>
Mon, 24 Jan 2022 13:31:45 +0000 (13:31 +0000)
committerGabriel Oginski <gabrielx.oginski@intel.com>
Tue, 25 Jan 2022 11:36:28 +0000 (11:36 +0000)
commit9d2db2eb2ed212d205310142ab49b1f883d513ce
tree0ec8c6f34bfc30009e2bd9416acb9baf9e849a44
parente3d36d18c1ae30438fa2aa91aee4f14c43688a6e
wireguard: fix passing argument

Fixed coverity-issue CID 248456.
Originally passing argument of type "uint64_t *" to function:
"memcopy_s_inline".
This patch fixes the problem by changing type of passing argument and
make a portable assumption.

Type: fix

Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com>
Change-Id: I17e4583a05ea1263e4d8a4acc9949454e5fd92c0
(cherry picked from commit ffd9057493ba75d157d8fd316f4978b64a6efb30)
src/plugins/wireguard/wireguard_output_tun.c