]> git.ipfire.org Git - thirdparty/strongswan.git/commit
ita-comp-ima: Change validation URI parsing to avoid GCC 12 compiler warning
authorTobias Brunner <tobias@strongswan.org>
Thu, 16 Jun 2022 16:40:25 +0000 (18:40 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 27 Jun 2022 12:09:11 +0000 (14:09 +0200)
commit4a19a5e056eac2c0cb11fb2ec321a1530390bc78
tree688b020dcd3cf12dab926fe26280588ffbc8fd55
parent1c198bf22bd96abe8ee91de6f49ea2feab0d7a12
ita-comp-ima: Change validation URI parsing to avoid GCC 12 compiler warning

The compiler warned that a dangling pointer might be used because `name`,
which is returned from the function via `ima_name`, might point into the
locally determined `uri`.  Determining the URI outside and passing it to
the function fixes this.
src/libimcv/pts/components/ita/ita_comp_ima.c