diff options
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-daemon-vpn.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index b003d7b53..e90a2aa9c 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c | |||
@@ -102,10 +102,7 @@ static void helper_read(void* cls, const struct GNUNET_SCHEDULER_TaskContext* ts | |||
102 | 102 | ||
103 | struct suid_packet *pkt = (struct suid_packet*) GNUNET_malloc(ntohl(hdr.size)); | 103 | struct suid_packet *pkt = (struct suid_packet*) GNUNET_malloc(ntohl(hdr.size)); |
104 | 104 | ||
105 | if (memcpy(pkt, &hdr, sizeof(struct suid_packet_header)) < 0) { | 105 | memcpy(pkt, &hdr, sizeof(struct suid_packet_header)); |
106 | fprintf(stderr, "Memcpy: %m\n"); | ||
107 | return; | ||
108 | } | ||
109 | 106 | ||
110 | while (r < ntohl(pkt->hdr.size)) { | 107 | while (r < ntohl(pkt->hdr.size)) { |
111 | int t = GNUNET_DISK_file_read(mycls->fh_from_helper, (unsigned char*)pkt + r, ntohl(pkt->hdr.size) - r); | 108 | int t = GNUNET_DISK_file_read(mycls->fh_from_helper, (unsigned char*)pkt + r, ntohl(pkt->hdr.size) - r); |