aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-daemon-vpn-helper.c
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-02-24 14:44:04 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-02-24 14:44:04 +0000
commit126827b14598e8d82bc35d7396b87d0f5a6a5e8f (patch)
tree0249caba70b6850de0f8799cff1d509c84791882 /src/vpn/gnunet-daemon-vpn-helper.c
parent119990aed1a3f628196d98fc1da15a1ab3f4f3a9 (diff)
downloadgnunet-126827b14598e8d82bc35d7396b87d0f5a6a5e8f.tar.gz
gnunet-126827b14598e8d82bc35d7396b87d0f5a6a5e8f.zip
fix SIGSEGV if dns was slow to start up
Diffstat (limited to 'src/vpn/gnunet-daemon-vpn-helper.c')
-rw-r--r--src/vpn/gnunet-daemon-vpn-helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-vpn-helper.c b/src/vpn/gnunet-daemon-vpn-helper.c
index 1317c9ade..9df2a8cc0 100644
--- a/src/vpn/gnunet-daemon-vpn-helper.c
+++ b/src/vpn/gnunet-daemon-vpn-helper.c
@@ -122,7 +122,8 @@ start_helper_and_schedule(void *cls,
122 * The routing-table gets flushed if an interface disappears. 122 * The routing-table gets flushed if an interface disappears.
123 */ 123 */
124 restart_hijack = 1; 124 restart_hijack = 1;
125 GNUNET_CLIENT_notify_transmit_ready(dns_connection, sizeof(struct GNUNET_MessageHeader), GNUNET_TIME_UNIT_FOREVER_REL, GNUNET_YES, &send_query, NULL); 125 if (NULL != dns_connection)
126 GNUNET_CLIENT_notify_transmit_ready(dns_connection, sizeof(struct GNUNET_MessageHeader), GNUNET_TIME_UNIT_FOREVER_REL, GNUNET_YES, &send_query, NULL);
126} 127}
127/*}}}*/ 128/*}}}*/
128 129