summaryrefslogtreecommitdiff
path: root/src/conversation
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-26 12:37:01 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-26 12:37:01 +0000
commit6ddb3909c0386efc4cf172eda113dbe904a0f75a (patch)
tree22e12e151ef353654dcb41c6530753d5dd1ae02d /src/conversation
parent871d289fbe7629caa39aeb7e9bb30d7d48864d62 (diff)
-fix possible NPE
Diffstat (limited to 'src/conversation')
-rw-r--r--src/conversation/gnunet-service-conversation.c3
1 files changed, 2 insertions, 1 deletions
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,