summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hidd/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/hidd/main.c b/hidd/main.c
index 932a0858..89c79509 100644
--- a/hidd/main.c
+++ b/hidd/main.c
@@ -271,8 +271,12 @@ static int create_device(int ctl, int csk, int isk, uint8_t subclass, int nosdp,
if (!err)
goto create;
- if (!nocheck)
- return -1;
+ if (!nocheck) {
+ ba2str(&dst, bda);
+ syslog(LOG_ERR, "Rejected connection from unknown device %s\n", bda);
+ /* Return no error to avoid run_server() complaining too */
+ return 0;
+ }
if (!nosdp) {
err = get_sdp_device_info(&src, &dst, &req);