mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
fixed: use SASIZE() instead of sizeof() in connect() for FreeBSD compatibility
This commit is contained in:
1 parent
7a7cd9bc25
commit
fec0da52af
5 files changed
+8
-9
No files matched your search
+1
-1
@@ -688,7 +688,7 @@ int doconnect(struct clientparam * param){
|
||||
#ifdef _WIN32
|
||||
unsigned long ul = 1;
|
||||
#endif
|
||||
if(so._connect(param->remsock,(struct sockaddr *)¶m->sinsr,sizeof(param->sinsr))) {
|
||||
if(so._connect(param->remsock,(struct sockaddr *)¶m->sinsr,SASIZE(¶m->sinsr))) {
|
||||
return (13);
|
||||
}
|
||||
param->nconnects++;
|
||||
|
||||
Reference in new issue
Block a user