Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e091526d authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Johan Hedberg
Browse files

Bluetooth: Use smp->remote_pk + 32 instead of &smp->remote_pk[32]

parent cb06d366
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2543,7 +2543,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;