2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

check ptr is not NULL

This commit is contained in:
Mark Andrews
2015-11-11 22:33:57 +11:00
parent 8012e06abf
commit 946e2cd351

View File

@@ -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;