mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -04:00
Attempt to fix crash in pqissludp
Caused by unneeded pointer usages + not enough careful IPv6 porting I haven't managed to reproduce the crash nor to test the fix due it happening only when UDP relayed connection happens (apparently never on my nodes. I have managed to discover where the bug comes from thanks to multiple user reports, specially to Ilario report which documented 3 crashes happening on 0.6.4 with complete log.
This commit is contained in:
parent
d711e09b68
commit
7d6fba7e8c
3 changed files with 82 additions and 99 deletions
|
@ -103,11 +103,10 @@ int tou_connect(int sockfd, const struct sockaddr *serv_addr,
|
|||
socklen_t addrlen, uint32_t conn_period);
|
||||
int tou_accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen);
|
||||
|
||||
/* for relay connections */
|
||||
int tou_connect_via_relay(int sockfd,
|
||||
const struct sockaddr_in *own_addr,
|
||||
const struct sockaddr_in *proxy_addr,
|
||||
const struct sockaddr_in *dest_addr);
|
||||
/// for relay connections
|
||||
int tou_connect_via_relay( int sockfd, const sockaddr_in& own_addr,
|
||||
const sockaddr_in& proxy_addr,
|
||||
const sockaddr_in& dest_addr );
|
||||
|
||||
/* non-standard bonuses */
|
||||
int tou_connected(int sockfd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue