]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: use dns_question_isempty() where appropriate
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2025 15:50:02 +0000 (17:50 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2025 16:02:53 +0000 (18:02 +0200)
src/resolve/resolved-dns-query.c

index 42e779c9d8c22eb742da1dccecdddf2d580d3ec3..6db973d83846b7d36fddbd0af1caa720582c4645 100644 (file)
@@ -561,7 +561,7 @@ static int manager_validate_and_mangle_question(Manager *manager, DnsQuestion **
         assert(question);
         assert(ret_allocated);
 
-        if (!*question) {
+        if (dns_question_isempty(*question)) {
                 *ret_allocated = NULL;
                 return 0;
         }