Bluetooth: Use smp->remote_pk + 32 instead of &smp->remote_pk[32]
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Use smp->remote_pk + 32 instead of &smp->remote_pk[32]
Signed-off-by Marcel Holtmann <[email protected]>
--- net/bluetooth/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/smp.c +1 -1
@@ -2535,7 +2535,7 @@ static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb) }SMP_DBG ("Remote Public Key X: %32phN" , smp->remote_pk); -SMP_DBG ("Remote Public Key Y: %32phN" , &smp->remote_pk[32 ]); +SMP_DBG ("Remote Public Key Y: %32phN" , smp->remote_pk +32 );if (!ecdh_shared_secret (smp->remote_pk, smp->local_sk, smp->dhkey))return SMP_UNSPECIFIED ;
Signature · 1 line
2.1.0