| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: xfrout.c,v 1.11 2016/05/26 16:49:56 christos Exp $ */ | | 1 | /* $NetBSD: xfrout.c,v 1.12 2016/10/09 14:53:54 christos Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC") | | 4 | * Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC") |
5 | * Copyright (C) 1999-2003 Internet Software Consortium. | | 5 | * Copyright (C) 1999-2003 Internet Software Consortium. |
6 | * | | 6 | * |
7 | * Permission to use, copy, modify, and/or distribute this software for any | | 7 | * Permission to use, copy, modify, and/or distribute this software for any |
8 | * purpose with or without fee is hereby granted, provided that the above | | 8 | * purpose with or without fee is hereby granted, provided that the above |
9 | * copyright notice and this permission notice appear in all copies. | | 9 | * copyright notice and this permission notice appear in all copies. |
10 | * | | 10 | * |
11 | * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH | | 11 | * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH |
12 | * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | | 12 | * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
13 | * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, | | 13 | * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, |
14 | * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | | 14 | * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| @@ -1176,27 +1176,27 @@ xfrout_ctx_create(isc_mem_t *mctx, ns_cl | | | @@ -1176,27 +1176,27 @@ xfrout_ctx_create(isc_mem_t *mctx, ns_cl |
1176 | xfr->zone = NULL; | | 1176 | xfr->zone = NULL; |
1177 | xfr->db = NULL; | | 1177 | xfr->db = NULL; |
1178 | xfr->ver = NULL; | | 1178 | xfr->ver = NULL; |
1179 | if (zone != NULL) /* zone will be NULL if it's DLZ */ | | 1179 | if (zone != NULL) /* zone will be NULL if it's DLZ */ |
1180 | dns_zone_attach(zone, &xfr->zone); | | 1180 | dns_zone_attach(zone, &xfr->zone); |
1181 | dns_db_attach(db, &xfr->db); | | 1181 | dns_db_attach(db, &xfr->db); |
1182 | dns_db_attachversion(db, ver, &xfr->ver); | | 1182 | dns_db_attachversion(db, ver, &xfr->ver); |
1183 | xfr->end_of_stream = ISC_FALSE; | | 1183 | xfr->end_of_stream = ISC_FALSE; |
1184 | xfr->tsigkey = tsigkey; | | 1184 | xfr->tsigkey = tsigkey; |
1185 | xfr->lasttsig = lasttsig; | | 1185 | xfr->lasttsig = lasttsig; |
1186 | xfr->txmem = NULL; | | 1186 | xfr->txmem = NULL; |
1187 | xfr->txmemlen = 0; | | 1187 | xfr->txmemlen = 0; |
1188 | xfr->nmsg = 0; | | 1188 | xfr->nmsg = 0; |
1189 | xfr->many_answers = many_answers, | | 1189 | xfr->many_answers = many_answers; |
1190 | xfr->sends = 0; | | 1190 | xfr->sends = 0; |
1191 | xfr->shuttingdown = ISC_FALSE; | | 1191 | xfr->shuttingdown = ISC_FALSE; |
1192 | xfr->mnemonic = NULL; | | 1192 | xfr->mnemonic = NULL; |
1193 | xfr->buf.base = NULL; | | 1193 | xfr->buf.base = NULL; |
1194 | xfr->buf.length = 0; | | 1194 | xfr->buf.length = 0; |
1195 | xfr->txmem = NULL; | | 1195 | xfr->txmem = NULL; |
1196 | xfr->txmemlen = 0; | | 1196 | xfr->txmemlen = 0; |
1197 | xfr->stream = NULL; | | 1197 | xfr->stream = NULL; |
1198 | xfr->quota = NULL; | | 1198 | xfr->quota = NULL; |
1199 | | | 1199 | |
1200 | /* | | 1200 | /* |
1201 | * Allocate a temporary buffer for the uncompressed response | | 1201 | * Allocate a temporary buffer for the uncompressed response |
1202 | * message data. The size should be no more than 65535 bytes | | 1202 | * message data. The size should be no more than 65535 bytes |