summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-udp/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/shim-udp/main.c')
-rw-r--r--src/ipcpd/shim-udp/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index e06787ce..ba2805c5 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -941,6 +941,11 @@ static int ipcp_udp_name_query(char * name)
return -1; /* -ENOTENROLLED */
}
+ if (ipcp_data_dir_has(ipcpi.data, name)) {
+ pthread_rwlock_unlock(&ipcpi.state_lock);
+ return 0;
+ }
+
#ifdef CONFIG_OUROBOROS_ENABLE_DNS
dns_addr = udp_data.dns_addr;