diff options
Diffstat (limited to 'src/vpn/gnunet-daemon-exit.c')
-rw-r--r-- | src/vpn/gnunet-daemon-exit.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c index 3a05f2e24..abafe9ed6 100644 --- a/src/vpn/gnunet-daemon-exit.c +++ b/src/vpn/gnunet-daemon-exit.c | |||
@@ -644,7 +644,6 @@ read_service_conf (void *cls __attribute__ ((unused)), const char *section) | |||
644 | 644 | ||
645 | struct redirect_service *serv = | 645 | struct redirect_service *serv = |
646 | GNUNET_malloc (sizeof (struct redirect_service)); | 646 | GNUNET_malloc (sizeof (struct redirect_service)); |
647 | memset (serv, 0, sizeof (struct redirect_service)); | ||
648 | serv->my_port = local_port; | 647 | serv->my_port = local_port; |
649 | 648 | ||
650 | if (0 == strcmp ("localhost4", hostname)) | 649 | if (0 == strcmp ("localhost4", hostname)) |
@@ -1034,7 +1033,6 @@ receive_tcp_service (void *cls | |||
1034 | */ | 1033 | */ |
1035 | struct redirect_state *state = GNUNET_malloc (sizeof (struct redirect_state)); | 1034 | struct redirect_state *state = GNUNET_malloc (sizeof (struct redirect_state)); |
1036 | 1035 | ||
1037 | memset (state, 0, sizeof (struct redirect_state)); | ||
1038 | state->tunnel = tunnel; | 1036 | state->tunnel = tunnel; |
1039 | state->serv = serv; | 1037 | state->serv = serv; |
1040 | state->type = SERVICE; | 1038 | state->type = SERVICE; |
@@ -1112,7 +1110,6 @@ receive_tcp_remote (void *cls | |||
1112 | 1110 | ||
1113 | struct redirect_state *state = GNUNET_malloc (sizeof (struct redirect_state)); | 1111 | struct redirect_state *state = GNUNET_malloc (sizeof (struct redirect_state)); |
1114 | 1112 | ||
1115 | memset (state, 0, sizeof (struct redirect_state)); | ||
1116 | state->tunnel = tunnel; | 1113 | state->tunnel = tunnel; |
1117 | state->type = REMOTE; | 1114 | state->type = REMOTE; |
1118 | state->hashmap = tcp_connections; | 1115 | state->hashmap = tcp_connections; |
@@ -1194,7 +1191,6 @@ receive_udp_remote (void *cls | |||
1194 | */ | 1191 | */ |
1195 | struct redirect_state *state = GNUNET_malloc (sizeof (struct redirect_state)); | 1192 | struct redirect_state *state = GNUNET_malloc (sizeof (struct redirect_state)); |
1196 | 1193 | ||
1197 | memset (state, 0, sizeof (struct redirect_state)); | ||
1198 | state->tunnel = tunnel; | 1194 | state->tunnel = tunnel; |
1199 | state->hashmap = udp_connections; | 1195 | state->hashmap = udp_connections; |
1200 | state->type = REMOTE; | 1196 | state->type = REMOTE; |
@@ -1297,7 +1293,6 @@ receive_udp_service (void *cls | |||
1297 | */ | 1293 | */ |
1298 | struct redirect_state *state = GNUNET_malloc (sizeof (struct redirect_state)); | 1294 | struct redirect_state *state = GNUNET_malloc (sizeof (struct redirect_state)); |
1299 | 1295 | ||
1300 | memset (state, 0, sizeof (struct redirect_state)); | ||
1301 | state->tunnel = tunnel; | 1296 | state->tunnel = tunnel; |
1302 | state->serv = serv; | 1297 | state->serv = serv; |
1303 | state->type = SERVICE; | 1298 | state->type = SERVICE; |