]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Fix @CONF-OBJ-SEP@ parsing for multiple configs
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 22 Feb 2023 15:01:58 +0000 (17:01 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 22 Feb 2023 15:01:58 +0000 (17:01 +0200)
commit7292e30b7f3f04bd9aa90b6a2c67f9cb2814e191
treecdd33423e9a279f7178d932eccbb0afbfffc835a
parent596d602de8bf7c827ea8553be4d51d382ea25664
DPP: Fix @CONF-OBJ-SEP@ parsing for multiple configs

The first call to dpp_configuration_parse_helper() was supposed to use
the separately prepared tmp string with only the first configuration
entry, but it ended up using the full string that included both
configuration entries. This could result in the first configObject
getting a mix of parameters from both entries.

Fix the parsing to use only the text before the @CONF-OBJ-SEP@ separator
for the first entry.

Fixes: 7eb06a33697f ("DPP2: Allow multiple Config Objects to be build on Configurator")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/common/dpp.c