summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-02-11 22:31:13 +0000
committerChristian Pointner <equinox@anytun.org>2014-02-11 22:31:13 +0000
commit6d74bbab1620acdf71915c8189c683acde8c3f84 (patch)
tree16329e7ce8477e238438b030f50bccff39af2ec8
parentlistening in multiple sockets works now (diff)
fixed memory error at udp_endpoint_to_string
-rw-r--r--src/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udp.c b/src/udp.c
index c600e98..9054f10 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -332,7 +332,7 @@ char* udp_endpoint_to_string(udp_endpoint_t* e)
char* udp_get_remote_end_string(udp_t* sock)
{
- if(!sock || !sock->active_sock_->remote_end_set_)
+ if(!sock || !sock->active_sock_ || !sock->active_sock_->remote_end_set_)
return NULL;
return udp_endpoint_to_string(&(sock->active_sock_->remote_end_));