diff options
Diffstat (limited to 'hcid/dbus-security.c')
| -rw-r--r-- | hcid/dbus-security.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c index d2d634e6..f7b409e6 100644 --- a/hcid/dbus-security.c +++ b/hcid/dbus-security.c @@ -569,7 +569,7 @@ void cancel_passkey_agent_requests(struct slist *agents, const char *path, bdadd  	for (l = default_agent->pending_requests; l != NULL; l = next) {  		struct pending_agent_request *req = l->data;  		next = l->next; -		if (!strcmp(path, req->path) && !bacmp(addr, &req->bda)) { +		if (!strcmp(path, req->path) && (!addr || !bacmp(addr, &req->bda))) {  			send_cancel_request(default_agent, req);  			default_agent->pending_requests = slist_remove(default_agent->pending_requests,  									req); @@ -582,7 +582,7 @@ void cancel_passkey_agent_requests(struct slist *agents, const char *path, bdadd  		for (l = agent->pending_requests; l != NULL; l = next) {  			struct pending_agent_request *req = l->data;  			next = l->next; -			if (!strcmp(path, req->path) && !bacmp(addr, &req->bda)) { +			if (!strcmp(path, req->path) && (!addr || !bacmp(addr, &req->bda))) {  				send_cancel_request(agent, req);  				agent->pending_requests = slist_remove(agent->pending_requests, req);  			}  | 
