diff options
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_channel.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_channel.c b/src/cadet/gnunet-service-cadet-new_channel.c index bce62032a..43c905816 100644 --- a/src/cadet/gnunet-service-cadet-new_channel.c +++ b/src/cadet/gnunet-service-cadet-new_channel.c | |||
@@ -1917,15 +1917,17 @@ GCCH_handle_local_ack (struct CadetChannel *ch, | |||
1917 | GSC_send_to_client (ccc->c, | 1917 | GSC_send_to_client (ccc->c, |
1918 | com->env); | 1918 | com->env); |
1919 | /* Notify sender that we can receive more */ | 1919 | /* Notify sender that we can receive more */ |
1920 | if (ccc->ccn.channel_of_client == | 1920 | if ( (NULL != ch->owner) && |
1921 | ch->owner->ccn.channel_of_client) | 1921 | (ccc->ccn.channel_of_client == |
1922 | ch->owner->ccn.channel_of_client) ) | ||
1922 | { | 1923 | { |
1923 | to_owner = GNUNET_NO; | 1924 | to_owner = GNUNET_NO; |
1924 | } | 1925 | } |
1925 | else | 1926 | else |
1926 | { | 1927 | { |
1927 | GNUNET_assert (ccc->ccn.channel_of_client == | 1928 | GNUNET_assert ( (NULL != ch->dest) && |
1928 | ch->dest->ccn.channel_of_client); | 1929 | (ccc->ccn.channel_of_client == |
1930 | ch->dest->ccn.channel_of_client) ); | ||
1929 | to_owner = GNUNET_YES; | 1931 | to_owner = GNUNET_YES; |
1930 | } | 1932 | } |
1931 | send_ack_to_client (ch, | 1933 | send_ack_to_client (ch, |