From 6ddb3909c0386efc4cf172eda113dbe904a0f75a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 26 Aug 2016 12:37:01 +0000 Subject: -fix possible NPE --- src/conversation/gnunet-service-conversation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/conversation') diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c index baf35c9a2..8937c8f49 100644 --- a/src/conversation/gnunet-service-conversation.c +++ b/src/conversation/gnunet-service-conversation.c @@ -1243,7 +1243,7 @@ inbound_end (void *cls, void *channel_ctx) { struct Channel *ch = channel_ctx; - struct Line *line = ch->line; + struct Line *line; struct ClientPhoneHangupMessage hup; if (NULL == ch) @@ -1251,6 +1251,7 @@ inbound_end (void *cls, GNUNET_break (0); return; } + line = ch->line; GNUNET_assert (channel == ch->channel); ch->channel = NULL; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, -- cgit v1.2.3