-fix possible NPE
authorChristian Grothoff <christian@grothoff.org>
Fri, 26 Aug 2016 12:37:01 +0000 (12:37 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 26 Aug 2016 12:37:01 +0000 (12:37 +0000)
src/conversation/gnunet-service-conversation.c

index baf35c9a287514fe78ecd3f6d7e930c6a37111fe..8937c8f4972afce8512ae8d66adbd4bce4bff8f4 100644 (file)
@@ -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,