Fix a zero overwrite in the ECDH handling