[riot-notifications] [RIOT-OS/RIOT] pkg/semtech-loramac: rework how session keys are get/set (#11783)
notifications at github.com
Tue Jul 16 10:44:29 CEST 2019
Looking into the code it seems to me the problem is actually here:
mibReq.Type = MIB_APP_SKEY;
memcpy(mibReq.Param.AppSKey, skey, LORAMAC_APPSKEY_LEN);
`mibReq.Param.AppSKey` is an uninitialized pointer, so calling memcpy here is incorrect. What should actually be done is simply:
`mibReq.Param.AppSKey = (uint8_t *) skey;`
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications