diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-26 08:30:42 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-26 08:30:42 +0000 |
commit | a982b34e490be610ac88315293a86bd395708738 (patch) | |
tree | 77bcd6d939749e349fe419a042c31d8476d5336d /src/ats | |
parent | 36b7b9b8e10bf92986f9dd45ab7d8522f5843486 (diff) | |
download | gnunet-a982b34e490be610ac88315293a86bd395708738.tar.gz gnunet-a982b34e490be610ac88315293a86bd395708738.zip |
fix if cb == NULL
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index 7822315da..acd252245 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -638,6 +638,10 @@ process_ats_message (void *cls, const struct GNUNET_MessageHeader *msg) | |||
638 | return; | 638 | return; |
639 | } | 639 | } |
640 | } | 640 | } |
641 | |||
642 | if (NULL == sh->suggest_cb) | ||
643 | return; | ||
644 | |||
641 | address.peer = m->peer; | 645 | address.peer = m->peer; |
642 | address.address = plugin_address; | 646 | address.address = plugin_address; |
643 | address.address_length = plugin_address_length; | 647 | address.address_length = plugin_address_length; |