2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

init bufferlist

This commit is contained in:
Bob Halley
1999-09-07 01:55:54 +00:00
parent 83ea7ab7e0
commit 6181350b1a

View File

@@ -357,6 +357,7 @@ main(int argc, char *argv[]) {
isc_sockettype_udp, &sock);
check_result(result, "isc_socket_create()");
ISC_LIST_INIT(bufferlist);
isc_buffer_init(&b2, data2, sizeof data2, ISC_BUFFERTYPE_BINARY);
ISC_LIST_ENQUEUE(bufferlist, &b2, link);
result = isc_socket_recvv(sock, &bufferlist, 1, task, recv_done, NULL);