From f588c2993d8034a5c893dacc770a367c7cb69c55 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 13 Dec 2013 13:09:21 +0000 Subject: [PATCH] -sometimes bugs are really simple -- fixing #3191 but creating fresh crashes --- src/transport/gnunet-service-transport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 33ea4a3be..5b09647ec 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -472,8 +472,8 @@ GST_ats_add_address (const struct GNUNET_HELLO_Address *address, if (GNUNET_YES == GNUNET_ATS_session_known (GST_ats, address, session)) return; - net = papi->get_network (NULL, (void *) session); - if (GNUNET_ATS_NET_UNSPECIFIED != net) + net = papi->get_network (NULL, session); + if (GNUNET_ATS_NET_UNSPECIFIED == net) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Could not obtain a valid network for `%s' %s (%s)\n"), -- 2.25.1