mirror of https://gerrit.osmocom.org/libosmocore
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
This commit is contained in:
parent
b189b5f29c
commit
a545842609
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue