mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 11:09:59 -04:00
check ptr is not NULL
This commit is contained in:
parent
8012e06abf
commit
946e2cd351
1 changed files with 3 additions and 0 deletions
|
|
@ -9262,6 +9262,9 @@ ns_server_rekey(ns_server_t *server, isc_lex_t *lex, isc_buffer_t **text) {
|
|||
char *ptr;
|
||||
|
||||
ptr = next_token(lex, text);
|
||||
if (ptr == NULL)
|
||||
return (ISC_R_UNEXPECTEDEND);
|
||||
|
||||
if (strcasecmp(ptr, NS_COMMAND_SIGN) == 0)
|
||||
fullsign = ISC_TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue