Module Name:    src
Committed By:   plunky
Date:           Mon Apr  4 19:51:33 UTC 2011

Modified Files:
        src/lib/libbluetooth: sdp_put.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libbluetooth/sdp_put.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libbluetooth/sdp_put.c
diff -u src/lib/libbluetooth/sdp_put.c:1.3 src/lib/libbluetooth/sdp_put.c:1.4
--- src/lib/libbluetooth/sdp_put.c:1.3	Sat Nov 13 19:43:56 2010
+++ src/lib/libbluetooth/sdp_put.c	Mon Apr  4 19:51:33 2011
@@ -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;

Reply via email to