diff options
author | dimitri staessens <[email protected]> | 2016-10-26 17:30:14 +0000 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-10-26 17:30:14 +0000 |
commit | 7848ec4100f8677392fb6b07c42dd47ee6aa9b0d (patch) | |
tree | 58da3a711d6c3b9f09d45b9677499d613a4a0d9e | |
parent | cd6db513e66ad0bccb06b3b36e13824ad03c18ee (diff) | |
parent | 0276dbc1a8b09217f0552521cf2e7d9056a8d2a3 (diff) | |
download | ouroboros-7848ec4100f8677392fb6b07c42dd47ee6aa9b0d.tar.gz ouroboros-7848ec4100f8677392fb6b07c42dd47ee6aa9b0d.zip |
Merged in sandervrijders/ouroboros/be-fix-udp-query (pull request #286)
ipcpd: shim-udp: Add check for directory entry
-rw-r--r-- | src/ipcpd/shim-udp/main.c | 5 |
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; |