Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libbluetooth correct inverted logic (if sdp_put_data fai...



details:   https://anonhg.NetBSD.org/src/rev/32ddb4d5c360
branches:  trunk
changeset: 763817:32ddb4d5c360
user:      plunky <plunky%NetBSD.org@localhost>
date:      Mon Apr 04 19:51:33 2011 +0000

description:
correct inverted logic (if sdp_put_data fails, sdp_put_attr should fail)

diffstat:

 lib/libbluetooth/sdp_put.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bbe16b031400 -r 32ddb4d5c360 lib/libbluetooth/sdp_put.c
--- a/lib/libbluetooth/sdp_put.c        Mon Apr 04 19:44:16 2011 +0000
+++ b/lib/libbluetooth/sdp_put.c        Mon Apr 04 19:51:33 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdp_put.c,v 1.3 2010/11/13 19:43:56 plunky Exp $       */
+/*     $NetBSD: sdp_put.c,v 1.4 2011/04/04 19:51:33 plunky Exp $       */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: sdp_put.c,v 1.3 2010/11/13 19:43:56 plunky Exp $");
+__RCSID("$NetBSD: sdp_put.c,v 1.4 2011/04/04 19:51:33 plunky Exp $");
 
 #include <bluetooth.h>
 #include <limits.h>
@@ -65,7 +65,7 @@
        sdp_data_t d = *data;
 
        if (!sdp_put_uint16(&d, attr)
-           || sdp_put_data(&d, value))
+           || !sdp_put_data(&d, value))
                return false;
 
        *data = d;



Home | Main Index | Thread Index | Old Index