diff options
author | Harald Welte <laforge@osmocom.org> | 2021-04-29 18:39:52 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-04-29 19:59:12 +0200 |
commit | a5458426097095a3f12c8fb934987fe704701ccc (patch) | |
tree | a440eb4f7fcf328b9dd376506bf7793e8c5b0163 | |
parent | Fix ipa_ccm_make_id_resp_from_req to work at all (diff) | |
download | libosmocore-a5458426097095a3f12c8fb934987fe704701ccc.tar.xz libosmocore-a5458426097095a3f12c8fb934987fe704701ccc.zip |
ipa_ccm_make_id_resp: Make it work at all
This could never possibly have worked. When iterating over the
different IEs to encode, we must of course use the tag of the current
iterator item, and not the hard-coded value of the second tag in the
list.
Change-Id: I148799c5bdb95f70118691c1150330ebac4fdf21
-rw-r--r-- | src/gsm/ipa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/ipa.c b/src/gsm/ipa.c index fc77d756..447e8e3d 100644 --- a/src/gsm/ipa.c +++ b/src/gsm/ipa.c @@ -388,7 +388,7 @@ struct msgb *ipa_ccm_make_id_resp(const struct ipaccess_unit *dev, tag = msgb_put(msg, 3 + strlen(str) + 1); tag[0] = 0x00; tag[1] = 1 + strlen(str) + 1; - tag[2] = ies_req[1]; + tag[2] = ies_req[i]; memcpy(tag + 3, str, strlen(str) + 1); } ipa_prepend_header(msg, IPAC_PROTO_IPACCESS); |