HomePhabricator

socket: Use calloc in ssh_socket_new()

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on May 20 2019, 5:10 PM.

Description

socket: Use calloc in ssh_socket_new()

This makes sure the content will be zero after successful allocation.

Resolves T134

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>