diff options
Diffstat (limited to 'lib/resolv_wrapper/resolv_wrapper.c')
-rw-r--r-- | lib/resolv_wrapper/resolv_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolv_wrapper/resolv_wrapper.c b/lib/resolv_wrapper/resolv_wrapper.c index c70ca64e92..10af3606b6 100644 --- a/lib/resolv_wrapper/resolv_wrapper.c +++ b/lib/resolv_wrapper/resolv_wrapper.c @@ -733,7 +733,7 @@ static int rwrap_get_record(const char *hostfile, unsigned recursion, } } - if (rc == ENOENT && recursion == 0) { + if (rc == ENOENT && recursion == 0 && key != NULL) { RWRAP_LOG(RWRAP_LOG_TRACE, "Record for [%s] not found\n", query); memcpy(rr->key, key, strlen(key) + 1); } |