Check return code of connect(2).
Check return code of connect(2).

Signed-off-by: William Orr <37d41699bdee4fcb969ca499eb0f8b82c60d59cc@worrbase.com>
Reviewed-by: Andreas Schneider <5be00ddc76278cf6077f5047ca3384a88460c671@cryptomilk.org>

nviennot/libssh,nviennot/libssh,robxu9/libssh,sebadoom/libssh,mwgoldsmith/ssh,kedazo/libssh,robxu9/libssh,robxu9/libssh,mwgoldsmith/ssh,DouglasHeriot/libssh,mwgoldsmith/libssh,taikoo/libssh,robxu9/libssh,pouete/libssh,Distrotech/libssh,sebadoom/libssh,mwgoldsmith/ssh,DouglasHeriot/libssh,taikoo/libssh,Distrotech/libssh,nviennot/libssh,wangshawn/libssh,Distrotech/libssh,DouglasHeriot/libssh,taikoo/libssh,kedazo/libssh,pouete/libssh,mwgoldsmith/libssh,kedazo/libssh,wangshawn/libssh,kedazo/libssh,Distrotech/libssh,nviennot/libssh,mwgoldsmith/ssh,wangshawn/libssh,DouglasHeriot/libssh,wangshawn/libssh,pouete/libssh,mwgoldsmith/libssh,taikoo/libssh,sebadoom/libssh,pouete/libssh,mwgoldsmith/libssh,sebadoom/libssh