diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-06-19 12:34:17 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-06-19 12:34:17 +0000 |
commit | 82df718a8ab61b1e00dbe0bd61b7c674bee8f510 (patch) | |
tree | f12d40dfc226faf2e994a319566f93e408fa2f95 /src/vpn | |
parent | 07870c9466ab919dc65cfb93e80254ea207999bd (diff) | |
download | gnunet-82df718a8ab61b1e00dbe0bd61b7c674bee8f510.tar.gz gnunet-82df718a8ab61b1e00dbe0bd61b7c674bee8f510.zip |
invariant
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-daemon-vpn-helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vpn/gnunet-daemon-vpn-helper.c b/src/vpn/gnunet-daemon-vpn-helper.c index e5fb59c00..52c8b4a9c 100644 --- a/src/vpn/gnunet-daemon-vpn-helper.c +++ b/src/vpn/gnunet-daemon-vpn-helper.c | |||
@@ -140,6 +140,9 @@ helper_write(void* cls __attribute__((unused)), const struct GNUNET_SCHEDULER_Ta | |||
140 | return; | 140 | return; |
141 | 141 | ||
142 | struct answer_packet_list* ans = answer_proc_head; | 142 | struct answer_packet_list* ans = answer_proc_head; |
143 | |||
144 | if (NULL == ans) return; | ||
145 | |||
143 | size_t len = ntohs(ans->pkt.hdr.size); | 146 | size_t len = ntohs(ans->pkt.hdr.size); |
144 | 147 | ||
145 | GNUNET_assert(ans->pkt.subtype == GNUNET_DNS_ANSWER_TYPE_IP); | 148 | GNUNET_assert(ans->pkt.subtype == GNUNET_DNS_ANSWER_TYPE_IP); |