From a25351325187eb8eff8b9b090acd8f2d7684c6ff Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 10 Sep 2010 10:15:07 +0200 Subject: upstream: minow hw updates. --- hw/bt-sdp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'hw/bt-sdp.c') diff --git a/hw/bt-sdp.c b/hw/bt-sdp.c index 992de0e..cc0bf2f 100644 --- a/hw/bt-sdp.c +++ b/hw/bt-sdp.c @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * with this program; if not, see . */ #include "qemu-common.h" @@ -160,7 +159,7 @@ static ssize_t sdp_svc_search(struct bt_l2cap_sdp_state_s *sdp, if (len < 3) return -SDP_INVALID_SYNTAX; - end = (req[0] << 8) | req[1]; + max = (req[0] << 8) | req[1]; req += 2; len -= 2; @@ -172,7 +171,7 @@ static ssize_t sdp_svc_search(struct bt_l2cap_sdp_state_s *sdp, } else start = 0; - if (len > 1); + if (len > 1) return -SDP_INVALID_SYNTAX; /* Output the results */ -- cgit v1.1