aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-01 21:06:45 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-01 21:06:45 +0000
commita5ed92551e9cd82cdf9ba28fe121cb1e106a9012 (patch)
tree9f8546e3c1a3dba0922794a58cf087c6db9d3d25 /src
parent2a6488eb1ed561f5f32d8465057893123f3a6703 (diff)
downloadgnunet-a5ed92551e9cd82cdf9ba28fe121cb1e106a9012.tar.gz
gnunet-a5ed92551e9cd82cdf9ba28fe121cb1e106a9012.zip
fixing bad control flow
Diffstat (limited to 'src')
-rw-r--r--src/transport/test_plugin_transport_http.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c
index b28750443..9d9ae2f09 100644
--- a/src/transport/test_plugin_transport_http.c
+++ b/src/transport/test_plugin_transport_http.c
@@ -619,11 +619,16 @@ notify_address (void *cls,
619 inet_ntop(AF_INET, (struct in_addr *) addr,address,INET_ADDRSTRLEN); 619 inet_ntop(AF_INET, (struct in_addr *) addr,address,INET_ADDRSTRLEN);
620 port = ntohs(((struct IPv4HttpAddress *) addr)->u_port); 620 port = ntohs(((struct IPv4HttpAddress *) addr)->u_port);
621 } 621 }
622 if (addrlen == (sizeof (struct IPv6HttpAddress))) 622 else if (addrlen == (sizeof (struct IPv6HttpAddress)))
623 { 623 {
624 inet_ntop(AF_INET6, (struct in6_addr *) addr,address,INET6_ADDRSTRLEN); 624 inet_ntop(AF_INET6, (struct in6_addr *) addr,address,INET6_ADDRSTRLEN);
625 port = ntohs(((struct IPv6HttpAddress *) addr)->u6_port); 625 port = ntohs(((struct IPv6HttpAddress *) addr)->u6_port);
626 } 626 }
627 else
628 {
629 GNUNET_break (0);
630 return;
631 }
627 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 632 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
628 _("Transport plugin notification for address: `%s':%u\n"), 633 _("Transport plugin notification for address: `%s':%u\n"),
629 address, 634 address,