BUILD: dns: fix null-deref build warning at -Wextra
Like for the other checks, the type is being tested just before calling
objt_{server,dns_srvrq}() so let's use the unguarded version instead to
silence the warning.
diff --git a/src/dns.c b/src/dns.c
index 16a2c17..90a937c 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -1434,12 +1434,12 @@
/* Move hostname_dn related pointers to the next requester */
switch (obj_type(req->owner)) {
case OBJ_TYPE_SERVER:
- res->hostname_dn = objt_server(req->owner)->hostname_dn;
- res->hostname_dn_len = objt_server(req->owner)->hostname_dn_len;
+ res->hostname_dn = __objt_server(req->owner)->hostname_dn;
+ res->hostname_dn_len = __objt_server(req->owner)->hostname_dn_len;
break;
case OBJ_TYPE_SRVRQ:
- res->hostname_dn = objt_dns_srvrq(req->owner)->hostname_dn;
- res->hostname_dn_len = objt_dns_srvrq(req->owner)->hostname_dn_len;
+ res->hostname_dn = __objt_dns_srvrq(req->owner)->hostname_dn;
+ res->hostname_dn_len = __objt_dns_srvrq(req->owner)->hostname_dn_len;
break;
default:
res->hostname_dn = NULL;