View previous topic :: View next topic |
Author |
Message |
lowerpower
Joined: 01 Oct 2007 Posts: 8
|
Posted: Fri Nov 02, 2007 1:34 am Post subject: Socket bugs |
|
|
in miniwget2 if the connect fails you leak a socket descriptor resource by not calling closesocket(s)
I think you do this in a few other places.
I think your supposto call closesocket(sd) any time you get a valid socket from socket() even if the connect fails.
probably not real critical in real machines but in uClinux it can be fatal.
-M |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Fri Nov 02, 2007 2:12 pm Post subject: |
|
|
indeed there are some socket leaks in this code.
I'm going to fix that.
Thanks for your report _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
|
Back to top |
|
|
|