fixed: use SASIZE() instead of sizeof() in connect() for FreeBSD compatibility

This commit is contained in:
z3APA3A committed 2016-01-25 14:49:17 +03:00
1 parent 7a7cd9bc25
commit fec0da52af
5 files changed
+8 -9

No files matched your search

+1 -1
View File
@@ -688,7 +688,7 @@ int doconnect(struct clientparam * param){
#ifdef _WIN32
unsigned long ul = 1;
#endif
if(so._connect(param->remsock,(struct sockaddr *)&param->sinsr,sizeof(param->sinsr))) {
if(so._connect(param->remsock,(struct sockaddr *)&param->sinsr,SASIZE(&param->sinsr))) {
return (13);
}
param->nconnects++;