summaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udp.c')
-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_));