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
This commit is contained in:
parent
b7de4fa0d3
commit
98e0f284ba
@ -73,7 +73,7 @@ server_init(server_p srv, char const *control)
|
||||
assert(srv != NULL);
|
||||
assert(control != NULL);
|
||||
|
||||
memset(srv, 0, sizeof(srv));
|
||||
memset(srv, 0, sizeof(*srv));
|
||||
|
||||
/* Open control socket */
|
||||
if (unlink(control) < 0 && errno != ENOENT) {
|
||||
|
Loading…
Reference in New Issue
Block a user