mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
check ptr is not NULL
This commit is contained in:
@@ -9262,6 +9262,9 @@ ns_server_rekey(ns_server_t *server, isc_lex_t *lex, isc_buffer_t **text) {
|
|||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
ptr = next_token(lex, text);
|
ptr = next_token(lex, text);
|
||||||
|
if (ptr == NULL)
|
||||||
|
return (ISC_R_UNEXPECTEDEND);
|
||||||
|
|
||||||
if (strcasecmp(ptr, NS_COMMAND_SIGN) == 0)
|
if (strcasecmp(ptr, NS_COMMAND_SIGN) == 0)
|
||||||
fullsign = ISC_TRUE;
|
fullsign = ISC_TRUE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user