mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-26 23:59:41 +08:00
Replace memcpy with assignment where appropriate
This commit is contained in:
1 parent
3cc9796583
commit
13a7d6be11
8 files changed
+45
-41
No files matched your search
+1
-1
@@ -138,7 +138,7 @@ void * dnsprchild(struct clientparam* param) {
|
||||
if(so._bind(param->remsock,(struct sockaddr *)¶m->sinsl,SASIZE(¶m->sinsl))) {
|
||||
RETURN(819);
|
||||
}
|
||||
memcpy(¶m->sinsr, &nservers[0].addr, sizeof(param->sinsr));
|
||||
param->sinsr = nservers[0].addr;
|
||||
if(nservers[0].usetcp) {
|
||||
if(so._connect(param->remsock,(struct sockaddr *)¶m->sinsr,SASIZE(¶m->sinsr))) RETURN(830);
|
||||
buf-=2;
|
||||
|
||||
Reference in new issue
Block a user