summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_ats.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-07 10:36:04 +0000
committerChristian Grothoff <christian@grothoff.org>2015-03-07 10:36:04 +0000
commit12100c9e78074d60745ce320aeed78c68658fcfe (patch)
treed19b4ff09432a22836e726b0478e484448ba0e73 /src/transport/gnunet-service-transport_ats.c
parentb80ca38067a55ae8588446ad47ecc7af65abefcc (diff)
fix #3701
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.c')
-rw-r--r--src/transport/gnunet-service-transport_ats.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_ats.c b/src/transport/gnunet-service-transport_ats.c
index 8c3c5fed8..90947ddb4 100644
--- a/src/transport/gnunet-service-transport_ats.c
+++ b/src/transport/gnunet-service-transport_ats.c
@@ -708,8 +708,11 @@ GST_ats_expire_address (const struct GNUNET_HELLO_Address *address)
if (NULL != ai->session)
{
ai->expired = GNUNET_YES;
- GNUNET_ATS_address_destroy (ai->ar);
- ai->ar = NULL;
+ if (NULL != ai->ar)
+ {
+ GNUNET_ATS_address_destroy (ai->ar);
+ ai->ar = NULL;
+ }
return;
}
GNUNET_assert (GNUNET_YES ==