aboutsummaryrefslogtreecommitdiff
path: root/src/exit
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-05 16:25:46 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-05 16:25:46 +0200
commit32f590da99c8c77c063b58e3a105a3c05fa5e988 (patch)
treee40710b59eb8a89957841c810f0fb8fa9db1edda /src/exit
parenteea5388958b3c21336972a0c979dc344e3bc66e7 (diff)
downloadgnunet-32f590da99c8c77c063b58e3a105a3c05fa5e988.tar.gz
gnunet-32f590da99c8c77c063b58e3a105a3c05fa5e988.zip
where applicable, check DNS ID in responses before processing further
Diffstat (limited to 'src/exit')
-rw-r--r--src/exit/gnunet-daemon-exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index c624e083e..0b3cc505a 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -475,6 +475,8 @@ process_dns_result (void *cls,
475 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 475 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
476 "Processing DNS result from stub resolver\n"); 476 "Processing DNS result from stub resolver\n");
477 GNUNET_assert (NULL == cls); 477 GNUNET_assert (NULL == cls);
478 if (NULL == dns)
479 return;
478 /* Handle case that this is a reply to a request from a CADET DNS channel */ 480 /* Handle case that this is a reply to a request from a CADET DNS channel */
479 ts = channels[dns->id]; 481 ts = channels[dns->id];
480 if ( (NULL == ts) || 482 if ( (NULL == ts) ||