mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-05 15:08:52 +00:00
Replace tabs and remove trailing whitespace
This commit is contained in:
parent
0d40de48c2
commit
5131b263ed
@ -86,7 +86,7 @@ get_builtin_cert(void)
|
|||||||
static const char*
|
static const char*
|
||||||
get_builtin_ds(void)
|
get_builtin_ds(void)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
". IN DS 19036 8 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5\n";
|
". IN DS 19036 8 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,23 +211,23 @@ DNSResolver::DNSResolver() : m_data(new DNSResolverData())
|
|||||||
ub_ctx_hosts(m_data->m_ub_context, NULL);
|
ub_ctx_hosts(m_data->m_ub_context, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEVELOPER_LIBUNBOUND_OLD
|
#ifdef DEVELOPER_LIBUNBOUND_OLD
|
||||||
#pragma message "Using the work around for old libunbound"
|
#pragma message "Using the work around for old libunbound"
|
||||||
{ // work around for bug https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=515 needed for it to compile on e.g. Debian 7
|
{ // work around for bug https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=515 needed for it to compile on e.g. Debian 7
|
||||||
char * ds_copy = NULL; // this will be the writable copy of string that bugged version of libunbound requires
|
char * ds_copy = NULL; // this will be the writable copy of string that bugged version of libunbound requires
|
||||||
try {
|
try {
|
||||||
char * ds_copy = strdup( ::get_builtin_ds() );
|
char * ds_copy = strdup( ::get_builtin_ds() );
|
||||||
ub_ctx_add_ta(m_data->m_ub_context, ds_copy);
|
ub_ctx_add_ta(m_data->m_ub_context, ds_copy);
|
||||||
} catch(...) { // probably not needed but to work correctly in every case...
|
} catch(...) { // probably not needed but to work correctly in every case...
|
||||||
if (ds_copy) { free(ds_copy); ds_copy=NULL; } // for the strdup
|
if (ds_copy) { free(ds_copy); ds_copy=NULL; } // for the strdup
|
||||||
throw ;
|
throw ;
|
||||||
}
|
}
|
||||||
if (ds_copy) { free(ds_copy); ds_copy=NULL; } // for the strdup
|
if (ds_copy) { free(ds_copy); ds_copy=NULL; } // for the strdup
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// normal version for fixed libunbound
|
// normal version for fixed libunbound
|
||||||
ub_ctx_add_ta(m_data->m_ub_context, ::get_builtin_ds() );
|
ub_ctx_add_ta(m_data->m_ub_context, ::get_builtin_ds() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user