From 88631cb466758f05a72512391b4d2d27f6173922 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philipp=20T=C3=B6lke?= Date: Mon, 8 Nov 2010 10:49:47 +0000 Subject: [PATCH] Fix a uninitialized-warning --- src/vpn/gnunet-daemon-vpn.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index f6a20f8a6..e0d7a572c 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c @@ -554,6 +554,12 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) { list = GNUNET_malloc(htons(pkt->hdr.size) + 2*sizeof(struct answer_packet_list*)); memcpy(&list->pkt, pkt, htons(pkt->hdr.size)); } + else + { + GNUNET_abort(0); + GNUNET_free(pkt); + return; + } GNUNET_free(pkt); -- 2.25.1