[sr-dev] git:pd/websocket: core: fixed segmentation fault I had added to forward.h
Peter Dunkley
peter.dunkley at crocodile-rcs.com
Sat Jun 23 23:01:25 CEST 2012
Module: sip-router
Branch: pd/websocket
Commit: 11a2ad18ea0b263316fe8728aa44b892d7c4fe86
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=11a2ad18ea0b263316fe8728aa44b892d7c4fe86
Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date: Sat Jun 23 21:52:15 2012 +0100
core: fixed segmentation fault I had added to forward.h
---
forward.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/forward.h b/forward.h
index d3831f9..f5137df 100644
--- a/forward.h
+++ b/forward.h
@@ -145,7 +145,7 @@ static inline int msg_send(struct dest_info* dst, char* buf, int len)
else if (dst->proto == PROTO_TLS)
con = tcpconn_get(dst->id, 0, 0, 0, 0);
#endif
- if (con->flags & F_CONN_WS)
+ if (con && con->flags & F_CONN_WS)
{
memset(&wsev, 0, sizeof(ws_event_info_t));
wsev.type = SREV_TCP_WS_FRAME_OUT;
More information about the sr-dev
mailing list