mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 22:49:59 -04:00
back port parse_rdata fix to handle NULL commandline
This commit is contained in:
parent
41ff983eeb
commit
58cbd8c4fd
1 changed files with 5 additions and 0 deletions
|
|
@ -1044,6 +1044,11 @@ parse_rdata(char **cmdlinep, dns_rdataclass_t rdataclass,
|
|||
dns_rdatacallbacks_t callbacks;
|
||||
isc_result_t result;
|
||||
|
||||
if (cmdline == NULL) {
|
||||
rdata->flags = DNS_RDATA_UPDATE;
|
||||
return (STATUS_MORE);
|
||||
}
|
||||
|
||||
while (*cmdline != 0 && isspace((unsigned char)*cmdline))
|
||||
cmdline++;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue