ZigBee: fix the first parameter of memcpy

key_record.key is already a pointer on an array

Change-Id: I9bcc715be54817f8daa3928fff72d9ef98d586f9
Reviewed-on: https://code.wireshark.org/review/18417
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2016-10-23 19:20:15 +02:00
parent a3a20531b1
commit 875b3e2732
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ static void uat_key_record_post_update(void) {
key_record.frame_num = ZBEE_SEC_PC_KEY; /* means it's a user PC key */
key_record.label = g_strdup(uat_key_records[i].label);
if (zbee_security_parse_key(uat_key_records[i].string, key, uat_key_records[i].byte_order)) {
memcpy(&key_record.key, key, ZBEE_SEC_CONST_KEYSIZE);
memcpy(key_record.key, key, ZBEE_SEC_CONST_KEYSIZE);
zbee_pc_keyring = g_slist_prepend(zbee_pc_keyring, g_memdup(&key_record, sizeof(key_record_t)));
}
}