tests: Check the return value of write.
server: Fix a double free.
kex: Fix a double free.
examples: Fix a use after free in scp example.
pki: Use fstat() after opening the file.
known_hosts: Fix readablity.
client: Fix possible NULL pointer dereference.
tests: Don't leak memory.
torture: Fix a resource leak on error.
pki: Fix resource leak on error.
tests: Use memory assert functions.
pki: Fix a resource leak on error.
pki: Limit privkey to 4M for now.
packet1: Don't free an invalid address.
examples: Check return value of ssh_channel_read.
channels1: Check return value of buffer_add_u8().
connect: Check return value of getsockopt().
dh: Check return value of buffer_add_ssh_string().
ecdh: Check return values of buffer_add_* functions.
messages: Fix a possible segfault.