diff options
Diffstat (limited to 'usr.sbin/bluetooth/sdpd/sur.c')
-rw-r--r-- | usr.sbin/bluetooth/sdpd/sur.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bluetooth/sdpd/sur.c b/usr.sbin/bluetooth/sdpd/sur.c index 6d7f778aa51a..143eaf3dbec9 100644 --- a/usr.sbin/bluetooth/sdpd/sur.c +++ b/usr.sbin/bluetooth/sdpd/sur.c @@ -58,7 +58,8 @@ server_prepare_service_unregister_response(server_p srv, int32_t fd) * value32 - uuid 4 bytes */ - if (!srv->fdidx[fd].control || req_end - req < 4) + if (!srv->fdidx[fd].control || + !srv->fdidx[fd].priv || req_end - req < 4) return (SDP_ERROR_CODE_INVALID_REQUEST_SYNTAX); /* Get handle */ |