aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-02-22 12:43:21 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-02-22 12:43:21 +0000
commit557f4d053010550a1a841c36312bcfbda1d3d947 (patch)
tree2d1764958d5488ecb3bee8e4fbb603e2b3f12d64 /src/transport/gnunet-service-transport_validation.c
parentca4afef263ca2530ac74b4eb036ae4fcac9e1426 (diff)
downloadgnunet-557f4d053010550a1a841c36312bcfbda1d3d947.tar.gz
gnunet-557f4d053010550a1a841c36312bcfbda1d3d947.zip
fix coverity 10138
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r--src/transport/gnunet-service-transport_validation.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index b631d8fdf..8a90f825b 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -880,6 +880,8 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender,
880 } 880 }
881 pong->signature = *sig_cache; 881 pong->signature = *sig_cache;
882 882
883 GNUNET_assert (sender_address != NULL);
884
883 /* first see if the session we got this PING from can be used to transmit 885 /* first see if the session we got this PING from can be used to transmit
884 * a response reliably */ 886 * a response reliably */
885 papi = GST_plugins_find (sender_address->transport_name); 887 papi = GST_plugins_find (sender_address->transport_name);
@@ -890,7 +892,7 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender,
890 GNUNET_assert (papi->send != NULL); 892 GNUNET_assert (papi->send != NULL);
891 GNUNET_assert (papi->get_session != NULL); 893 GNUNET_assert (papi->get_session != NULL);
892 894
893 if ((session == NULL) && (sender_address != NULL)) 895 if (session == NULL)
894 { 896 {
895 session = papi->get_session (papi->cls, sender_address); 897 session = papi->get_session (papi->cls, sender_address);
896 } 898 }