diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-08-26 12:37:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-08-26 12:37:01 +0000 |
commit | 6ddb3909c0386efc4cf172eda113dbe904a0f75a (patch) | |
tree | 22e12e151ef353654dcb41c6530753d5dd1ae02d /src/conversation/gnunet-service-conversation.c | |
parent | 871d289fbe7629caa39aeb7e9bb30d7d48864d62 (diff) | |
download | gnunet-6ddb3909c0386efc4cf172eda113dbe904a0f75a.tar.gz gnunet-6ddb3909c0386efc4cf172eda113dbe904a0f75a.zip |
-fix possible NPE
Diffstat (limited to 'src/conversation/gnunet-service-conversation.c')
-rw-r--r-- | src/conversation/gnunet-service-conversation.c | 3 |
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, | |||
1243 | void *channel_ctx) | 1243 | void *channel_ctx) |
1244 | { | 1244 | { |
1245 | struct Channel *ch = channel_ctx; | 1245 | struct Channel *ch = channel_ctx; |
1246 | struct Line *line = ch->line; | 1246 | struct Line *line; |
1247 | struct ClientPhoneHangupMessage hup; | 1247 | struct ClientPhoneHangupMessage hup; |
1248 | 1248 | ||
1249 | if (NULL == ch) | 1249 | if (NULL == ch) |
@@ -1251,6 +1251,7 @@ inbound_end (void *cls, | |||
1251 | GNUNET_break (0); | 1251 | GNUNET_break (0); |
1252 | return; | 1252 | return; |
1253 | } | 1253 | } |
1254 | line = ch->line; | ||
1254 | GNUNET_assert (channel == ch->channel); | 1255 | GNUNET_assert (channel == ch->channel); |
1255 | ch->channel = NULL; | 1256 | ch->channel = NULL; |
1256 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1257 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |