Fix possible NULL pointer dereferencing on variable label.

parent c8082556
Pipeline #18213 failed with stages
in 39 seconds
......@@ -218,6 +218,8 @@ main(int argc, char **argv) {
case 'l':
label = isc_mem_strdup(mctx, isc_commandline_argument);
if (label == NULL)
fatal("Failed to allocate memory for label");
case 'n':
nametype = isc_commandline_argument;
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