[sr-dev] git:master: core: fix TCP connection leak
Peter Dunkley
peter.dunkley at crocodile-rcs.com
Tue Oct 1 11:52:43 CEST 2013
Module: sip-router
Branch: master
Commit: 6cfd13cbddd1869ffbc947fdecd77d18a3fcb886
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6cfd13cbddd1869ffbc947fdecd77d18a3fcb886
Author: Peter Dunkley <peter.dunkley at crocodilertc.net>
Committer: Peter Dunkley <peter.dunkley at crocodilertc.net>
Date: Tue Oct 1 10:52:01 2013 +0100
core: fix TCP connection leak
- patch provided by Vitally Aleksandrov
---
msg_translator.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/msg_translator.c b/msg_translator.c
index b7d4894..b4581e7 100644
--- a/msg_translator.c
+++ b/msg_translator.c
@@ -2509,9 +2509,11 @@ char* via_builder( unsigned int *len,
} else if (con->rcv.proto==PROTO_WSS) {
memcpy(line_buf+MY_VIA_LEN-4, "WSS ", 4);
} else {
+ tcpconn_put(con);
LOG(L_CRIT, "BUG: via_builder: unknown proto %d\n", con->rcv.proto);
return 0;
}
+ tcpconn_put(con);
}else if (send_info->proto==PROTO_WSS){
memcpy(line_buf+MY_VIA_LEN-4, "WSS ", 4);
}else{
More information about the sr-dev
mailing list