diff options
author | Gustavo F. Padovan <gustavo@las.ic.unicamp.br> | 2009-03-31 23:30:45 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-04-01 08:50:47 +0300 |
commit | e03fcc773dab165a20df9fa6370e119ddaf23107 (patch) | |
tree | f8f4c12d9f5b39eb18e624c1b81aaee6e68e9383 /common | |
parent | 2a96da99c75ea86d7d6adf9c03a0189e6b445737 (diff) | |
download | bluez-e03fcc773dab165a20df9fa6370e119ddaf23107.tar.gz |
Fix memset of sco_opt
Now len has the correct value: sizeof(sco_opt)
Diffstat (limited to 'common')
-rw-r--r-- | common/btio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/btio.c b/common/btio.c index 05dc8213..e0ce8424 100644 --- a/common/btio.c +++ b/common/btio.c @@ -573,8 +573,8 @@ static gboolean sco_set(int sock, uint16_t mtu, GError **err) if (!mtu) return TRUE; - memset(&sco_opt, 0, len); len = sizeof(sco_opt); + memset(&sco_opt, 0, len); if (getsockopt(sock, SOL_SCO, SCO_OPTIONS, &sco_opt, &len) < 0) { ERROR_FAILED(err, "getsockopt(SCO_OPTIONS)", errno); return FALSE; |