UDPAssociateServing() use wrong port under the circumstances
Brought to you by:
matteoricchetti
(in SS5Mod_socks5.c line 1652)
When (addr!=ri->DstAddr) && (addr!=ci->SrcAddr), UDPAssociateServing() will use the address of the main socket, which is obtained by
/* Bind ANY (if option set) */
len = sizeof (struct sockaddr_in);
getsockname(ci->Socket,(struct sockaddr *)&serverbind_ssin,&len);
This will incorrectly set the sin_port field to the TCP listening port, resulting in that only one UDP association is allowed, and further connection will have error "address already in use".
The fix can be append the following line
serverbind_ssin.sin_port = htons(0);
Thank you. I'll update the sources.
----Messaggio originale----
Da: iceboy-sjtu@users.sf.net
Data: 14/04/2014 11.26
A: "Ticket 75"75@bugs.ss5.p.re.sf.net
Ogg: [ss5:bugs] #75 UDPAssociateServing() use wrong port under the circumstances
[bugs:#75] UDPAssociateServing() use wrong port under the circumstances
Status: open
Group: v1.0 (example)
Created: Mon Apr 14, 2014 09:26 AM UTC by iceboy
Last Updated: Mon Apr 14, 2014 09:26 AM UTC
Owner: nobody
(in SS5Mod_socks5.c line 1652)
When (addr!=ri->DstAddr) && (addr!=ci->SrcAddr), UDPAssociateServing() will use the address of the main socket, which is obtained by
This will incorrectly set the sin_port field to the TCP listening port, resulting in that only one UDP association is allowed, and further connection will have error "address already in use".
The fix can be append the following line
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/ss5/bugs/75/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs: #75
http://healthdaily.lifeinhealth.org/ymptzsik/rxjbsmudnnbm.mqdrhebavtngo
http://youtubeweekly.com/mjbwxwi/jfqcwcdhdctsbicenlysybirkp.vxuhuoahprjouzmg
Mat
1/23/2015 12:36:15 PM
http://theagene.web5.ict4b.eu/acwcln/ewsphfybvyzanxtbpauljxcdnrs.kzirbxfvheyrzllztesajfauvmjpleavgnrlqo
Mat
1/25/2015 1:51:18 PM