Commit 9c2a9c53 authored by Brian Wellington's avatar Brian Wellington
Browse files

the server could crash if the version string was unassigned.

parent 81b43827
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment