Merge pull request #1664

b5cb8861 core: fix integrated addresses breaking with auto zero change (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-02-04 17:20:02 +02:00
commit eb21389953
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -443,6 +443,8 @@ namespace cryptonote
{
if (!memcmp(&destinations[n].addr, &sender_keys.m_account_address, sizeof(destinations[0].addr)))
continue;
if (destinations[n].amount == 0)
continue;
if (memcmp(&destinations[n].addr, &destinations[0].addr, sizeof(destinations[0].addr)))
return null_pkey;
}