Commit Graph

7 Commits

Author SHA1 Message Date
Dimitry Andric
98e0f284ba In usr.sbin/bluetooth/sdpd/server.c, don't use the size of a pointer as
the length argument to memset, but the size of the object pointed to.

MFC after:	1 week
2011-12-17 19:26:03 +00:00
Maksim Yevmenkin
6bfc799ccf Check that the length of the received message is at least as big as a PDU
before we use pdu->len.

Submitted by:	Iain Hibbert
MFC after:	3 days
2007-02-23 19:37:47 +00:00
Maksim Yevmenkin
831a4264af Use socklen_t instead of int32_t where appropriate to pacify new GCC4
warnings.

Submitted by:	kan
MFC after:	1 week
2006-09-21 02:32:28 +00:00
Maksim Yevmenkin
0c3420df68 Fix formatting. Add missing break;
Submitted by:	Iain Hibbert
MFC after:	3 days
2006-05-14 22:19:38 +00:00
Maksim Yevmenkin
35929e6013 Properly convert L2CAP PSM values in sockaddr_l2cap to LE16 byte order.
Noticed by:	Iain Hibbert < plunky at rya-online dot net >
MFC after:	3 days
2006-03-16 18:26:54 +00:00
Maksim Yevmenkin
d1c004f7d1 Teach sdpd(8) to check peer's credentials before accepting request to
register, remove or change services in the local database. For now only
accept the request if the peer has effective user ID the same as 'root'
user ID.

MFC after:	1 week
2005-12-06 17:56:36 +00:00
Maksim Yevmenkin
07be7a6c2e Import sdpd(8) sources. This is Bluetooth Service Discovery Protocol daemon.
Extend libsdp(3) API to allow service registration and removal.
Fix uninitialized variable bug in sdpcontrol(8).

Reviewed by: imp (mentor)
No objection: ru
2004-01-20 20:48:26 +00:00