Initialize structure to NULL to retrieve pubkey
Don't release passed parameter, owned by the caller
Merge pull request #43 from JeremyAgost/pairing-fix

Pairing fix