ldns_status
ldns_rdf2buffer_str_ilnp64(ldns_buffer *output, const ldns_rdf *rdf)
{
- ldns_buffer_printf(output,"%.4x:%.4x:%.4d:%.4x",
+ ldns_buffer_printf(output,"%.4x:%.4x:%.4x:%.4x",
ldns_read_uint16(ldns_rdf_data(rdf)),
ldns_read_uint16(ldns_rdf_data(rdf)+2),
ldns_read_uint16(ldns_rdf_data(rdf)+4),
ldns_resolver_tsig_keydata(resolver),
300, ldns_resolver_tsig_algorithm(resolver), NULL);
if (status != LDNS_STATUS_OK) {
- /* RoRi: to prevent problems on subsequent calls to ldns_axfr_start
- we have to close the socket here! */
+ /* to prevent problems on subsequent calls to
+ * ldns_axfr_start we have to close the socket here! */
#ifndef USE_WINSOCK
close(resolver->_socket);
#else
ldns_buffer_free(query_wire);
LDNS_FREE(ns);
- /* RoRi: to prevent problems on subsequent calls to ldns_axfr_start
- we have to close the socket here! */
+ /* to prevent problems on subsequent calls to ldns_axfr_start
+ * we have to close the socket here! */
#ifndef USE_WINSOCK
close(resolver->_socket);
#else
ldns_buffer_free(query_wire);
LDNS_FREE(ns);
- /* RoRi: to prevent problems on subsequent calls to ldns_axfr_start
- we have to close the socket here! */
+ /* to prevent problems on subsequent calls to ldns_axfr_start
+ * we have to close the socket here! */
#ifndef USE_WINSOCK
close(resolver->_socket);
/* TODO: make status return type of this function (...api change) */
fprintf(stderr, "Error parsing rr during AXFR: %s\n", ldns_get_errorstr_by_id(status));
- /* RoRi: we must now also close the socket, otherwise subsequent uses of the
+ /* we must now also close the socket, otherwise subsequent uses of the
same resolver structure will fail because the link is still open or
in an undefined state */
#ifndef USE_WINSOCK
resolver->_cur_axfr_pkt));
}
- /* RoRi: we must now also close the socket, otherwise subsequent uses of the
+ /* we must now also close the socket, otherwise subsequent uses of the
same resolver structure will fail because the link is still open or
in an undefined state */
#ifndef USE_WINSOCK
}
-/* RoRi: this function is needed to abort a transfer that is in progress;
- * without it an aborted transfer will lead to the AXFR code in the
- * library staying in an indetermined state because the socket for the
- * AXFR is never closed
+/* this function is needed to abort a transfer that is in progress;
+ * without it an aborted transfer will lead to the AXFR code in the
+ * library staying in an indetermined state because the socket for the
+ * AXFR is never closed
*/
void
ldns_axfr_abort(ldns_resolver *resolver)