2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

the server could crash if the version string was unassigned.

This commit is contained in:
Brian Wellington
2000-05-23 00:40:59 +00:00
parent 81b438273a
commit 9c2a9c5306

View File

@@ -652,8 +652,8 @@ create_version_view(dns_c_ctx_t *cctx, dns_zonemgr_t *zmgr, dns_view_t **viewp)
r.length = sizeof(origindata);
dns_name_fromregion(&origin, &r);
(void) dns_c_ctx_getversion(cctx, &versiontext);
if (versiontext == NULL)
result = dns_c_ctx_getversion(cctx, &versiontext);
if (result != ISC_R_SUCCESS)
versiontext = ns_g_version;
len = strlen(versiontext);
if (len > 255)