On Friday, January 25, 2019 4:40:01 PM CET ideal wrote: > Hi, Hi Shang, > I am not sure if this is the right place to send my question. I am sorry if > wrong. > > If state is SSH_KNOWN_HOSTS_UNKNOWN in verify_knownhost(), > ssh_clean_pubkey_hash() can be called twice, is that OK?
I totally forgot about this tutorial. This is out of date and I need to fix that asap. Take a look at: https://git.libssh.org/projects/libssh.git/tree/examples/knownhosts.c? h=master-fix ssh_clean_pubkey_hash() calls free() on that string so you can't call it twice. Andreas -- Andreas Schneider [email protected] GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
