aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:32 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:32 +0000
commit9dc2dba015ab0b34d651afb04a5fc9fd520a0aad (patch)
tree02d1e5d920b7d4eb42a7279e6bdfb77e8534b4cf /src/vpn
parent9134c12c64d723c1f86f35cff1e66d0f0e6e9e40 (diff)
downloadgnunet-9dc2dba015ab0b34d651afb04a5fc9fd520a0aad.tar.gz
gnunet-9dc2dba015ab0b34d651afb04a5fc9fd520a0aad.zip
commented
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-daemon-exit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c
index 4530ccdcd..c999df834 100644
--- a/src/vpn/gnunet-daemon-exit.c
+++ b/src/vpn/gnunet-daemon-exit.c
@@ -273,6 +273,10 @@ udp_from_helper (struct udp_pkt *udp, unsigned char *dadr, size_t addrlen,
273 } 273 }
274 else 274 else
275 { 275 {
276 /* otherwise the answer came from a different port (tftp does this)
277 * add this new port to the list of all services, so that the packets
278 * coming back from the client to this new port will be routed correctly
279 */
276 struct redirect_service *serv = 280 struct redirect_service *serv =
277 GNUNET_malloc (sizeof (struct redirect_service)); 281 GNUNET_malloc (sizeof (struct redirect_service));
278 memcpy (serv, state->serv, sizeof (struct redirect_service)); 282 memcpy (serv, state->serv, sizeof (struct redirect_service));