connect: Check that errno is 0 to fix Windows build.
connect: Check that errno is 0 to fix Windows build.

Thanks to Viktor Butskih.

Signed-off-by: Andreas Schneider <5be00ddc76278cf6077f5047ca3384a88460c671@cryptomilk.org>

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